Java Script


JavaScript Tutorial


Admission Enquiry Form

Operators in JavaScript?

Operator is symbol which works on operand. Operators are the foundation of any programming language. Thus the functionality of JavaScript programming language is not complete without the use of operators because these are used to performs the operations.

operators in javascript

So, in the above image res,num1,num2 are operands+,= are operators and res=num1+num2; is an expression.

What is Operand in JavaScript?

The value given to the operator for operation is known as Operand in JavaScript.

What is Expression in JavaScript?

The combination of Operator and Operands is Known as Expression in JavaScript.

Types of Operators in JavaScript.

There are mainly three types of Operators in JavaScript:

  1. Unary Operators
  2. Binary Operators
  3. Ternary Operators

Unary Operators

Unary operators are those operators which works on one or single operand.

Binary Operators

Binary operators are those operators which works on two operands.

Ternary Operators

Ternary operators are those operators which works on three operands.
operators and its types