EXERCISE

JavaScript Variables

Chapter 3 · Check variable declaration and naming rules.

👤

Student Information

Select your class and name once. This browser will remember your selection for the next exercise or quiz.

Loading class list…
Your name is loaded from the student database. You do not need to type it repeatedly.
Exercise 3A

JavaScript Variables

Check variable declaration and naming rules.

QUESTION 1 OF 10

Which naming style is commonly used in JavaScript?

QUESTION 2 OF 10

A JavaScript identifier may start with…

QUESTION 3 OF 10

Which keyword declares a block-scoped constant?

QUESTION 4 OF 10

Which operator assigns a value?

QUESTION 5 OF 10

Which is case-sensitive?

QUESTION 6 OF 10

Which keyword is generally preferred over var for new code when reassignment is needed?

QUESTION 7 OF 10

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

QUESTION 8 OF 10

Which is valid?

QUESTION 9 OF 10

Which statement about const is correct?

QUESTION 10 OF 10

What happens when a let variable is declared inside a block?