JavaScript Comparison Operators
Comparison operators are used in logical statements to determine equality or difference between variables or values. They are used to test whether a condition is true or false
| Operator | Description |
| == | is equal to |
| === | is exactly equal to (value and type) |
| != | is not equal |
| > | is greater than |
| < | is less than |
| >= | is greater than or equal to |
| <= | is less than or equal to |
Note: It is a very common mistake to use a single equals (=) sign; meaning assignment, instead of the double equal sign which signifies comparison.
Conditional Operator
JavaScript also contains a conditional operator that assigns a value to a variable based on some condition.
Syntax
variableName=(condition)? true : false;

