Multiple choice

Which operator is used to assign a value to a variable?

  1. *

  2. =

  3. -

  4. x

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The single equals sign (=) is the standard assignment operator in JavaScript used to assign a value to a variable.