Multiple ChoiceBeginner 30s
Block Scope
Choose the best answer for: block scoping with let/const
Options
- 1let and const are scoped to the nearest enclosing block {}
- 2const declarations are global and ignore any enclosing block
- 3Blocks do not create scope for let and const declarations
- 4let is function-scoped and is hoisted to the function top
Think you can answer under pressure?
Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.