Skip to content

Challenge Storing Values with the Equal Operator

SaintPeter edited this page · 1 revision
Clone this wiki locally

Storing Values with the Equal Operator

In Javascript, you can store a value in a variable with the assignment or equal (=) operator.

myVariable = 5;

Assignment always goes from right to left. Everything to the right of the = operator is resolved before the value is assigned to the variable to the left of the operator.

myVar = 5;

myNum = myVar;
Something went wrong with that request. Please try again.