Question d’entretien chez Hexaware Technologies

What is hoisting in JS?

Réponse à la question d'entretien

Utilisateur anonyme

8 mars 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.