• Tutorials Logic, IN
  • +91 8092939553
  • info@tutorialslogic.com

JavaScript Operators

JavaScript Operators

An operators are used to perform a mathematical operation on single or multiple operands. There are various operators available in JavaScript, which are categorized into 5 parts-

Arithmetic Operators:-

OperatorDescription
+Addition
-Subtraction
*Multiplication
/Division
%Modulus (Remainder of a division)
++Increment
__Decrement

Assignment Operators:-

OperatorDescription
=Assign
+=Add and assign
-=Subtract and assign
*=Multiply and assign
/=Divide and assign
%=Modulus and assign

Comparison Operators:-

OperatorDescription
==Equal to
===Identical (Equal value and equal type)
!=Not equal to
!==Not identical (Not equal value or not equal type)
>Greater than
>=Greater than or equal to
<Less than
<=Less than or equal to

Boolean or Logical Operators:-

OperatorDescription
&&Logical AND
||Logical OR
!Logical NOT

String Operators:-

OperatorDescription
=Assignment
+Concatenate (Join two strings together)
+=Concatenate and assign