PRACTICE / UNDERSTAND / REPEAT

JavaScript practice question

Practice declarations with self-contained questions. Check your answer, then use the explanation to understand the reasoning.

1 questionAnswers explainedFree · no login

Try this question

Declarations · Code recallQuestion link ↗

Complete the declaration so `count` can be reassigned.

___ count = 0;
count += 1;
Answer & explanation

Answer: let

`let` declares a block-scoped variable that can be reassigned.