Variable part 2
The Equal Sign
In JavaScript, the equal sign (=) is called the "assignment" operator, rather than an "equal to" operator.
For example, x = y will assign the value of y to x.
A variable can be declared without a value. The value might require some calculation, something that will be provided later, like user input.
A variable declared without a value will have the value undefined.
What is the "=" (equal sign) called in JavaScript?
Comments
Post a Comment