Question 13
Considering the differences between “var”, “let”, and “const” in terms of scope, hoisting, and reassignment, which of the following statements is/are true?
“var” is function-scoped, hoisted, and allows reassignments.
“let” is block-scoped, hoisted, and allows reassignments.
“const” is block-scoped, hoisted, does not allow reassignments, and its value must be assigned at the time of declaration.
“let” and “const” behave identically except that const variables cannot be redeclared, while let variables can be redeclared in the same block.