freeCodeCamp Challenge Guide: Storing Values with the Assignment Operator

Storing Values with the Assignment Operator


Hints

Hint 1

It’s just like math! You can set a variable to act as a placeholder for data by using the ‘=’ assignment operator. In other words, the variable will store the data.

var a;
a = 5; // The variable 'a' is equal to 5

var abc;
abc = 123; // The variable 'abc' is equal to 123
8 Likes