Function HoistingHosting is JavaScript default behavior where variables and functions declaration move to top of their scope before code execution. and we…Apr 2, 2021Apr 2, 2021