An operator is a symbol that performs an operation on one or more values. The values it operates on are called operands, and the result is a new value.
operand operator operand
5 + 3
↓
result
8Types of Operators#
Arithmetic Operators#
Perform mathematical calculations — addition, subtraction, multiplication, division, modulo.
See Arithmetic Operators for a full explanation and examples.
Comparison Operators#
Compare two values and produce a true or false result. Used to build conditions in if/else statements and loops.