Arithmetic Operators in JavaScript

Learn how to use arithmetic operators in JavaScript for basic mathematical operations like addition, subtraction, multiplication, division, and more. This guide includes simple explanations and code examples for beginners.

E
Employee Billianz Academy
Jun 29, 2025 (1 year ago)
1 min read
191 views

Arithmetic Operators in JavaScript


Arithmetic operators are symbols used to perform mathematical calculations in JavaScript. These are essential for handling numbers, creating counters, doing calculations, and building logic in your programs.


➕Adds two numbers together.

let sum = 10 + 5;
console.log(sum); // Output: 15

➖ Subtraction (-)

Subtracts the second number from the first.

let difference = 10 - 3;
console.log(difference); // Output: 7

✖️ Multiplication (*)

Multiplies two numbers.

let product = 4 * 3;
console.log(product); // Output: 12

➗ Division (/)

Divides the first number by the second.

let result = 20 / 5;
console.log(result); // Output: 4

🧮 Modulus (%)

Returns the remainder when one number is divided by another.

let remainder = 10 % 3;
console.log(remainder); // Output: 1

Exponentiation (**)

Raises the first number to the power of the second.

let power = 2 ** 3;
console.log(power); // Output: 8

🔼 Increment (++)

Increases a number by 1.

let count = 5;
count++;
console.log(count); // Output: 6

🔽 Decrement (--)

Decreases a number by 1.

let count = 5;
count--;
console.log(count); // Output: 4

Conclusion

Arithmetic operators are one of the most commonly used tools in JavaScript. Whether you're doing basic math or building dynamic features, these operators are a key part of your programming toolkit. Practice using them in different scenarios to get comfortable with number-based logic.

E
Employee
Author at Billianz Academy

Sharing knowledge on cutting-edge technology, full-stack web development, industry trends, and professional career pathways for students and professionals.

Back to Blog
Table of Contents
0
Article Information
  • Category: Tech
  • Published: Jun 29, 2025
  • Reading Time: ~1 minutes
  • Total Views: 191
Upskill Today
Advance Your Tech Career

Master Full-Stack Web Development, Data Analytics, Python, and UI/UX with 100% placement assistance at Billianz Academy.

Quick Share
Continue Reading

Recommended Articles

More insights and tutorials curated for you in this category.

Career Opportunities for MERN Stack Developers Tech
Sep 09, 2026
Career Opportunities for MERN Stack Developers

Explore the career opportunities available for MERN stack developers — job roles, in-demand ski...

4 days ago Read Post
UI vs UX Design: Understanding the Difference, Process, Skills & Career Opportunities Tech
Sep 07, 2026
UI vs UX Design: Understanding the Difference, Process, Skills & Career Opportunities

UI vs UX design explained — key differences, design process, must-have skills, tools, and caree...

6 days ago Read Post
What is Spring Boot? Features, Use Cases, and Why Developers Love It Tech
Sep 02, 2026
What is Spring Boot? Features, Use Cases, and Why Developers Love It

Discover what Spring Boot is, its core features like auto-configuration and embedded servers, a...

1 week ago Read Post

Are you ready for a more great Conversation?