April 20, 2009

0 JavaScript Operators

JavaScript Operators Given Below






























































OperatorDescriptionExampleResult
+
Additionx=2
y=2
x+y
4
-
Subtraction
x=5
y=2
x+y
3
*
Multiplicationx=5
y=4
x*y
20
/
Division15/5
5/2
3
2.5
%Modulous
(division remainder)
5%2
10%8
10%2
1
2
0
++
Increment

x=5
x++
x=6
--
Decrement
x=5
x--
x=4

0 comments:

Post a Comment

Blogger Themes

 
Powered by Blogger