JS

JavaScript ES6 - Block-scoped declarations let and...

31.

Which of the following statements is true about block-scoped declarations using the let and const keywords in ES6?

let and const variables can both be accessed outside of their block scope

let variables can be reassigned outside of the block scope with a new value, while const variables cannot be reassigned

let variables can only be declared once in the same scope, while const variables can be declared multiple times

Both let and const create variables that are block-scoped