Here you can find a number of examples on Java Script.Please find the various kinds of examples listed on the right side of this site. If you don't find anything on Java Script then please write to us or leave a commnet. We are pleased to help and find the solution of your problem.

Javascript: Types of Operators



1. Arithmatic Operators :-

1. +(Addition)
2. -(Subtraction)
3. *(Multiplication)
4. /(Division)
5. %(Modules)
6. --(Returns the value then Increment)
7. ++(Returns the value then Decrement)

2. Logical Operators :-

1. &&(Logical AND)
2. ||(Logical OR)
3. !(Logical NOT)


3. Comparison Operators :-

1. ==(Equality)
!=(Not Equal)
3. ===(Strictly Equal)
4. !==(Stricty not Eqaul)
5. <(Less than)
6. >(Greater than)
7. <=(Less than or Equalto)
8. >=(Greater than or Equalto)

4. Assignment Operator :-

=(Equality)

5. Conditional Operator :-

The coditional operator ? and : are sometimes called ternary operators since they take three operand the condition is to be evaluated two alternative values to be written depending on truth or false of the condition.

Synatx:
condition?value1 : value2

6. Special Operator :-

1. Delete Operator: The delete operator is used to delete a object or a element of a array index.

2. New Operator: To create a new object of a type array and assign this array a memory.

Example:
myarray=new Array();

1 comment:

Google