JS Operators


JavaScript Operators

Ø  In JavaScript, an operator is a special symbol used to operate on one or many operands to produce a result. For example, 20 + 10

Ø  In the above example, 20 and 10 are the operands while + is the operator. 20 is the left operand while 10 is the right operand. The + operator will add the two numbers to give a result of 30. JavaScript supported the different types of operators:

ü  Logical Operators

ü  Assignment Operators

ü  Arithmetic Operators

ü  Comparison Operators

ü  Bitwise Operators

ü  String Operators

ü  Other Operators

Let us discuss the one-by-one each type of operator.


Leave a comment
No Cmomments yet