ASP Net Center.com
JavaScript
Introduction
Variables & Arrays
Functions
If Statements
Case Statements
Loop Statements
Alert
Form Processing
Date Objects
Window Objects

Java Script Operators

Bellow are list of some of operators available in Java Script. Their meanings and fair example of each.
Operator Description Example Result
+ Addition sign. Adds two numbers together. 8+2 10
- Subtraction sign. Subtracts number from a number. 8-2 6
* Multiplication sign. Multiplies two numbers. 4*4 16
/ Division sign. Divides a number by another number. 5/2 2.5
% Modulus. Tracks the reminder of two divided numbers. 5%2 1
++ Increment. Increases values by one each run. x=3
x++
x=4
-- Decrement. Decreases values by one in each run. x=3
x--
x=2
= Assignment sign. Assigns right variable or value to the left variable. x=y x has same value as y
+= Left variable is added to right value on each run. x+=y x=x+y
-= Left variable is subtracted from right value on each run. x-=y x=x-y
*= Left variable is multiplied by the right value on each run. x*=y x=x*y
/= Left variable is divided by the right value on each run. x/=y x=x/y
%= Reminder is tracked on each run. x%=y x=x%y
== Compares two values and returns boolean.td> 4==3 false
!= Tests if the values are NOT equal 4!=3 true
> Test if the left value is greater right value 5>4 true
< Test if the left value is less than right value 5<8 true
>= Test if left value greater than or equal to right value 3>=5 false
<= Test if left value less than or equal to right value 3<=5 true
&& Performs a logical conjunction on two expressions. AND for other languages. See if statement See if statement
|| Performs a logical conjunction on two expressions. OR for other languages. See if statement See if statement
&& Perform a logical negation on an expression. AND for other languages. See if statement See if statement
Loops Form Validation