What is the key scoping difference between 'let' and 'var' in JavaScript?
Answer options
A
let is function-scoped; var is block-scoped
B
let is block-scoped; var is function-scoped
C
Both are block-scoped but let cannot be reassigned
D
var is deprecated and cannot be used
Correct answer: let is block-scoped; var is function-scoped
Explanation
Quick AnswerThe correct answer is let is block-scoped; var is function-scoped because it directly addresses the core logic of Web Technology.
This question has been retained as-is due to its unique context.