Amazon.com: PC Books || Educational Software || Magazines
Amazon: Books-CA || Software-CA || Books-UK || Software-UK

HTML | Javascript | ASP | PHP | VBScript | SQL | Hardware | PC FAQ| WinXP|

Learn to Build, Upgrade, or Repair your Computer Ebook + PC Safety 101 kwwebservice.com Reasonably priced web development & hosting
JavaScript
Introduction
Variables & Arrays
Functions
If Statements
Case Statements
Loop Statements
Operators
Form Validation
Alert
Date Objects
Window Objects
Javascript Books
Books @ CA Amz
Books @ UK Amz
Books @ US Amz

  :: Home
PC Topics
  :: Build A PC
  :: Windows XP
  :: PC Help
Tutorials
  :: HTML
  :: JavaScript
  :: ASP
  :: PHP
  :: VBScript
  :: SQL
Miscellaneous
  :: Code/Scripts
  :: Forum
  :: Links
  :: Contact us
  :: Tell A Friend
  :: In Somali
  ::
Web Articles
  Top Web Hosting
Reviews
  Processing
Online Card Payment Guide
  Domain name
registration & buying guide
  Getting
a website online guide
  Search Engine
submission & optimization tips
Netfirms Web Hosting
Free trial
Quality business correspondence.
Yahoo! Search Marketing

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
Listed @ ConsumerVote.com - The Consumer Rated Web Directory
PC Articles
  Computer Safety
prevent viruses & Spyware