Skip to main content

Arithmetic Operators

These operators handle everyday math in your code:

  • + Addition - gives the sum of two values
  • - Subtraction - takes one value away from another
  • * Multiplication - gives the product of two values
  • / Division - gives the first value divided by the second
  • % Modulus - gives what is left over after dividing
  • ++ Increment - raises a variable by 1
  • -- Decrement - lowers a variable by 1