PRACTICE / UNDERSTAND / REPEAT

JavaScript: Declarations

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

15 questionsAnswers explainedFree · no login
Question 1 of 15
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.