Multiple ChoiceBeginner 30s
Function Scope
Choose the best answer for: var scoping
Options
- 1var creates a fresh scope for each block it is declared in
- 2var is scoped to the nearest enclosing function
- 3var is globally scoped only and always attaches to window
- 4var is block-scoped and respects the nearest braces
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.