JavaScript has the following types of operators: An assignment operator assigns a value to its left operand based on the value of its right operand:

See the Pen thecodelog.com - JS Operators 1 by Deano (@deangilewicz) on CodePen.

A comparison operator compares its operands and returns a logical value based on whether the comparison is true:

See the Pen thecodepen.com - JS Operators 2 by Deano (@deangilewicz) on CodePen.

An arithmetic operator takes numerical values as their operands and returns a single numerical value:

See the Pen thecodelog.com - JS Operators 3 by Deano (@deangilewicz) on CodePen.

Logical operators are typically used with Boolean values; when they are, they return a Boolean value. The && and || operators can return the value of one of the specified operands if these operators are used with non-Boolean values.

See the Pen thecodelog.com - JS Operators 4 by Deano (@deangilewicz) on CodePen.