JavaScript Operators Given Below
Operator
Description
Example
Result
+
Addition
x=2
y=2
x+y
4
-
Subtraction
x=5
y=2
x+y
3
*
Multiplication
x=5
y=4
x*y
20
/
Division
15/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
April 20, 2009
0 JavaScript Operators
Posted by raj on 7:05 AM
0 comments:
Post a Comment