Share via


Assignment Operator (=) (JScript 5.6) 

Assigns a value to a variable.


result = expression

Arguments

  • 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 equal zero after the example statement is executed.

Requirements

Version 1

See Also

Concepts

Operator Precedence (JScript 5.6)
Operator Summary (JScript 5.6)