You assign a value to an identifier (variable). Identifier on the left, assignment operator (
=), then the value you want to assign a unique name to on the right:
foo = 1
bar = 2
baz = 3
foo, bar, baz are identifiers, they are on the left of the assignment operator. They are being assigned 1, 2, and 3 respectively, and those values are on the right of the assignment operator.
identifier assignmentOperator value
| | |
myVar = 'foo'
There aren’t really any resources per se because that’s it, there isn’t much more to it than that.
var foo = 'hello';
const bar = true;
let baz = [1,2,3];