Which JavaScript keyword declares a block-scoped variable that can be reassigned?
Show answerHide answer
Correct answer: (B) let
Explanation
var is function-scoped; const cannot be reassigned.
Correct answer: (B) let
Explanation
var is function-scoped; const cannot be reassigned.
This is question 174 of DSSSB TGT Computer Science Full Mock Test 3. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.