Introduction to JavaScript

Math Operators

Don't worry, math does not need to be your strong-suit to learn JavaScript. There are just a few operations we'll need to know to make some awesome programs later in the course!).

JavaScript includes the general math operators that you can find on a calculator:

  1. Add: +
  2. Subtract: -
  3. Multiply: *
  4. Divide: /

These all work how you might guess: 3 + 4 will equal 7, 50 / 10 will equal 5.

Let's use each one of these math operators.

Community Forums
Get help and ask questions in the Codecademy Forums
Report a Bug
If you see a bug or any other issue with this page, please report it here.