What is the result of the following JavaScript execution context behavior?

Web Development Hard

Web Development — Hard

What is the result of the following JavaScript execution context behavior?

Key points

  • Var hoisting initializes to undefined
  • Let/Const hoisting results in temporal dead zone
  • Hoisting moves declarations, not assignments

Ready to go further?

Related questions