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.
variable can be declared without a value. The value might require some calculation, something that will be provided later, like user input.
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

Introducing object part 3

Comparison Operators part 2

Module 2