What is hoisting in JavaScript?

JavaScript Associate Medium

JavaScript Associate — Medium

What is hoisting in JavaScript?

Key points

  • Hoisting is a concept related to variable and function declarations.
  • It occurs during the compilation phase before execution.
  • Helps in using variables and functions before they are declared in the code.

Ready to go further?

Related questions