Skip to content

Hoisting

  • Hoisting is JavaScript’s default behavior of moving all declarations to the top of the current scope (to the top of the current script or current function)
  • go through the examples here would be the best. https://www.w3schools.com/js/js_hoisting.asp