• Image 1
  • Image 2
  • Image 3
  • Image 4
  • Image 5
  • Image 6
  • Image 7




Monday, July 2, 2012

TUTORIAL JAVASCRIPT - OPERATOR FOR NEWBIE

Define Operator is Operation using for preparation word or number, and for helping user in making program….

Or Operator say can too, something can do process calculation consideration and giving a argument..


In Javasript to be found 4 (four) Operator..

  1. Operator Aritmatika
  2. Operator Assignment
  3. Operator Comparison
  4. Operator Logica

1.      Operator Aritmatika
Operator aritmatika for Operation mathematics

Operator
Define
Example
+
Increased
20 + 2 = 24
-
Dcrease
20 – 2 = 18
*
Multipy
20 * 2 = 40
/
Devide
20 / 2  = 10
%
Mod
20 % 2 = 0
20 % 3 = 2


2.      Operator Assignment
Operator assignment is operator giving mark “=”. In Javascript giving mark “=“ little different from other application…

Shorthand Opeator
Mean
a += b
a = a + b
a -= b
a = a – b
a *= b
a = a * b
a /= b
a = a / b


3.      Operator Comparison
Operator comparison for comparison value with variable.. In Operator comparison to be found 6 (six) operator…

Operator
Define
Example
==
Same
Var1 == know
!=
Not Same
a != b
> 
More Than
a  >  b
< 
-
a  <  b
>=
-
a >= b
<=
-
a <= b


4.      Operator Logica
Operator Logica is Operation only have two statement “true” or “false”… If true want next execution, and if false want looking for until condition to fill..

Operator
Define
Example
&&
AND
a > 4 && a < 9
||
OR
a > 4 || a < 9
!
NOT
!expression


If you will download.. I have link...

Operator.doc >> link

No comments:

Post a Comment