Skip to main content
D
JavaScript
JavaScript Arithmetic

JavaScript Arithmetic

JavaScript arithmetic operators perform math on numbers.

Read Time
5 min read
Difficulty
Beginner
Last Updated
Jun 15, 2026
Version
v1.0.0

Introduction

JavaScript acts as a calculator directly in the browser. Developers use arithmetic operators to add scores, calculate discounts, or determine screen coordinates. These operators work exactly like standard algebra.

Example

Example
1/* this calculates a value */
2let price = 100;
3let tax = 5;
4let total = price + tax;

Key Points

  • The `+` operator adds numbers together.
  • The `-` operator subtracts one number from another.
  • The `*` operator multiplies numbers.
  • The `/` operator divides numbers.

Up Next

Continue your journey with the next topic.

Go to JS Assignment