Operators
JavaScript Operators
In JavaScript, Operator defined as the symbols or variable which helps in computing different task or operations like addition, subtraction, multiplication and more.
The numbers in an operation are known as operands.
The operation which is to be performed between the two operands is known as an operator.
For example,
var x = 1 + 2;
Here, 1 is defined as left operand and 2 is defined as right operand. “+” is defined as an addition operator.
JavaScript supports following operators are as follows:
- Arithmetic Operator
- Comparison Operator
- Logical Operator
- Assignment Operator
- Conditional Operator