The _________ dead zone refers to the time during which a let or const variable cannot be accessed.

  • temporal
  • execution
  • initial
  • declaration
The correct option is 'initial'. The temporal dead zone occurs between the entering of the scope and the actual declaration of the variable. During this time, trying to access the variable will result in a ReferenceError. It is called the 'initial' dead zone because it happens before the variable is initialized.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *