If a variable is declared inside a block using the let keyword, it is not accessible _________ that block.

  • Outside
  • After
  • Before
  • Within
If a variable is declared inside a block using the let keyword, it is not accessible outside that block. This is known as block scope, and it helps prevent unintended variable hoisting and leakage. Variables declared with let are limited to the block in which they are defined.
Add your answer
Loading...

Leave a comment

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