Friday, February 24, 2012

Java Script Operator chapter 4

 One the most important on all programing languanges is "Operator"
Operator is the common fuction that use to operate the logic programing
here are some of them


Operator
Description
-
Subtraction (minus)
+
Addition
*
Multiplication
/
Division(div)
%
Modulus(div reminder)
++
Increment
--
Decrement


here are the example of using Operators

var x;
var y;

x=2;
y=0;

y=x+y
document.write(y);


the result will shown

2

the other example

var x = 2;

x++;
document.write(x);

the result shown

3

try using another operator it would be fun to discover it.......
you can try this on post the result

x=5;
y=2
z=0

z=x/y;
y=x/z
x=y/z
the result is?

No comments:

Post a Comment

Task of Study Information Technology Headline Animator

Subscribe this blog