Types of operators in JavaScript


Real life scenario involves the manipulation of a variable. Operators combine simple values or expressions into complex new expression that returns values. This involves performing logical, arithmetic, relational and comparison operations on the expression. Through these operators web developers can create different functions as well.

Types of operators

Java provides several categories of operators. These are:

Arithmetic operators

These operators are used in mathematical expressions. Operands of the arithmetic must be of numeric type. Boolean operands cannot be used, but character operands are allowed.

Relational Operators

Relational operators test the relation between two operands. The result of an expression in which relational operators are used, is Boolean, that is either true or false.

Logical operators

Logical operators are typically used with Boolean (logical) values.

Assignment Operators

The assignment operators are single equal sign( = ), and it assigns a value to a variable. Assigning values to more than one variable can be done at a time . In other words, it allows to create a chain of assignment.

Bitwise Operators

A Bitwise operator allows manipulating individual bits in an integral primitive data type. These operators act upon the individual bits of their operands.