Question 174

Which JavaScript keyword declares a block-scoped variable that can be reassigned?

  1. Avar
  2. Blet
  3. Cconst
  4. Dstatic
Show answerHide answer

Correct answer: (B) let

Explanation

var is function-scoped; const cannot be reassigned.

From DSSSB TGT Computer Science Full Mock Test 3

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.