...::: Recent Updates :::...

Saturday, January 28, 2012

JavaScript program that demonstrates the use of +=,-=,*=,/= Operators.

JavaScript program that demonstrates the use of +=,-=,*=,/= Operators.

Example:-
var a=10; // Initial value of the variable is a=10.
a+=10;  // It increments the value of variable a=a+10 so the value a become 20.
a-=10; // It increments the value of variable a=a-10 so the value a become 10.
a*=10; // It increments the value of variable a=a*10 so the value a become 100.
a/=10; // It increments the value of variable a=a/10 so the value a become 10.


No comments:

Post a Comment