Learn

Getting Started with JavaScript

Basic arithmetic often comes in handy when programming. These include the following operators and their corresponding symbols:

- Addition
`+`

- Subtraction
`-`

- Multiplication
`*`

- Division
`/`

- Modulus
`%`

The first four work how you might guess:

The Modulus (`%`

) operator returns the remainder of a division operation.
Example:

Print the value `5 + 7`

to the console.

Print the value `3 * 2`

to the console.

Print the value `7 / 2`

to the console.

Print the value `5 % 3`

to the console.

Sign up to start coding

Already have an account?

Sign In

Course content