Operators

Learn about the three major types of operators used, including arithmetic, relational, and logical operators.

Operators

Previously, we discussed how a statement is made up of expressions and that expressions can be made up of operations or operands.

Let’s see an example of this. Here, we’ll create two variables and assign a value to each of them. Then, we’ll add the two values together and store the result in a new variable:

Get hands-on with 1200+ tech skills courses.