?
The let keyword can be used
Answer & Solution
Correct Answer:
Option
D
The let keyword can be used in four ways :
1. As a variable declaration like var;
2. In a for or for/in loop, as a substitute for var;
3. As a block statement, to define new variables and explicitly delimit their scope; and
4. To define variables that are scoped to a single expression.
1. As a variable declaration like var;
2. In a for or for/in loop, as a substitute for var;
3. As a block statement, to define new variables and explicitly delimit their scope; and
4. To define variables that are scoped to a single expression.
Join the Discussion
Login to post a comment or share your explanation.
Login