Domanda di colloquio di Hexaware Technologies

What is hoisting in JS?

Risposta di colloquio

Anonimo

8 mar 2024

hoisting refers to the built-in behavior of the language through which declarations of functions, variables, and classes are moved to the top of their scope – all before code execution. In turn, this allows us to use functions, variables, and classes before they are declared.