JavaScript Operators
JavaScript has different types of operators for different tasks.
Arithmetic Operators
Arithmetic operators are used to perform arithmetic on numbers.
+Addition-Subtraction*Multiplication**Exponentiation/Division%Modulus (Division Remainder)++Increment--Decrement
Comparison Operators
Comparison operators are used in logical statements to determine equality or difference between variables or values.
==equal to===equal value and equal type!=not equal!==not equal value or not equal type>greater than<less than
Test Yourself with an Exercise
Which operator is used to assign a value to a variable?