Microsoft® JScript
= Operator

See Also

Language Reference 

Description
Assigns a value to a variable.

Syntax
result = expression

The = operator syntax has these parts:

Part Description
result Any variable.
expression Any numeric expression.

Remarks

As the = operator behaves like other operators, expressions using it have a value in addition to assigning that value into variable. This means that you can chain assignment operators as follows:


j = k = l = 0;
j, k, and l will equal zero after the example statement is executed.


© 1996 by Microsoft Corporation.

Casa de Bender