Unary and Binary Operators

Learn about unary and binary operators and explore their diverse capabilities for precision and manipulation.

Operators apply simple operations such as addition and multiplication to operands such as variables and literal values. They usually return a new value that is the result of the operation, and that can be assigned to a variable.

Binary operator

Most operators are binary, meaning that they work on two operands, as shown in the following pseudo-code:

Get hands-on with 1400+ tech skills courses.