H I O X INDIA
Javascript Tutorial
 HOME  ||  Scripts  ||  Purchase  ||  Tutorials  ||  Images  ||  Tools  ||  Templates 
  :-)  Send Page   :-)   Feedback   :-)   Register   :-)   Links   :-)   Support   :-)
Español Français 中文 Deutsch Portuguese Japanese தமிழ்
 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
More about Javascript
Feedback



Javascript Operator Types


Topic

What is an operator and what are the types



Explanation

Operator:
An operator is a symbol or sign used in javascript to identify a specific operation.

For example, when we want to define an expression for adding two numbers, we use 3+4. Here let us assume that we have defined variable a and b for the number, so the expression will become a+b;
The symbol "+" defines that the operands a and b has to be added. So "+" is called as an operator.

Types Of Operators:
There a three type of operators based on operands used, namely unary, binary, ternary.
Unary - The Operator works with one operand (e.g: a++, a will be incremented by 1),
Binary - The Operator works with two operands (e.g: a+b),
Ternary - The Operator works with three operands (e.g: condition? value 1 : value 2).

There a four type of operators based on the type of use.





        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.

privacy policy     license     sitemap
© 2004-2010 HIOX INDIA

Other Links