Arithmetic Operators

Learn about the different arithmetic operators and their usage.

Relation between operators and operands

For numbers, the + and * operators mean the mathematical operations of adding and multiplying two numbers. There are other arithmetic operators. Here’s a full list:

  • +: Addition
  • -: Subtraction
  • *:Multiplication
  • /: Division
  • **: Exponentiation
  • %: Modulo (the signed rest of a division, for example, 5 % 2 returns 1)

However, some of these operators are also defined on other objects, like strings and arrays.

Try these out:

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy