![]() ![]() | |
Flash Player 4.
expression1/=expression2
expression1,expression2 A number or a variable that evaluates to a number.
Nothing.
Operator (arithmetic compound assignment); assigns expression1 the value of expression1 / expression2. For example, the following two statements are the same:
x /= yx = x / y
The following code illustrates using the /= operator with variables and numbers.
x = 10;y = 2;x /= y;// x now contains the value 5
![]() ![]() | |