H I O X INDIA
Javascript Tutorial
Google
Web hscripts.com
 HOME  ||  Scripts  ||  Purchase  ||  Tutorials  ||  Images  ||  Tools  ||  Directories 
  :-)  Send Page   :-)   Feedback   :-)   Register   :-)   Links   :-)   Support   :-)   Bookmarks :-)  
 Forums   Hosting   Internet Stats   Easy Calculation   FUN Games 

Java-Script Tutorial
Introduction
Variables
Operators
Statements
Loops
Functions
Objects
Arrays
Browser Objects
Form DOM
Ask Your Doubts
Feedback





Arithmetic Operators


Topic

Arithmetic operators that can be used in javascript?
Logical operators that can be used in javascript?



Explanation

Arithmetic Operators: They are operators or syntax used to do arithmetic or math operations like addition, subtraction, multiplication, division, increment, decrement, etc.. These are some time misspelled as arithmatic, arithematic.

Operator Syntax Description
+ Used for addition of two numbers
- Used for subtraction of two numbers
* Used for multiplication of two numbers
/ Used for division of two numbers
% Used to find the division remainder
++ Used to increment a value
-- Used to decrement a value


Example Code:
<script language="javascript">
var c = (2+4-2)*10;
document.write(" Arithmetic Operations -> "+c);
</script>


Result:



        Javascript (JS) is one of the most used languages in the world. Some times spelled as Java Script. Hope you enjoy this tutorial. Do send your feedback or suggestions on this javascript or java script tutorial. This is a copyright content.

others

privacy policy     license     sitemap
© 2004-2005 HIOX INDIA - hioxindia.com

Other Links