Both 'let' and 'const' declarations are hoisted to the top of their block but are not initialized, leading to a Temporal Dead Zone until the actual declaration is encountered.
15.
What will happen if you declare a 'let' variable inside a block and try to access it outside the block?
It is recommended to use 'let' and 'const' over 'var' because they are block-scoped, reducing the risk of errors related to variable hoisting and scope leakage.
19.
Which of the following statements about 'let' and 'const' is false?