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?
Assignment operator
Equal to
Is equivalent

Comments

Popular posts from this blog

Comparison Operators part 2

Other way to create array part 2

Math operator part 3