July 1998
Intermediate to advanced
1456 pages
65h 5m
English
= — NN 2 IE J1 ECMA 1
The assignment operator. This operator assigns the evaluated value of the right-hand operand to the variable on the left. After the operation, the variable contains data of the same data type as the original value. Assignment operations can also be chained, with the evaluation of the entire statement starting from the right and working left. Therefore, after the expression:
a = b = c = 25
all three variables equal 25.
var myName = "Theodore Roosevelt" var now = new Date()
Read now
Unlock full access