Friday, February 6, 2026
HomeLanguagesJavascriptDivision(/) Arithmetic Operator in JavaScript

Division(/) Arithmetic Operator in JavaScript

JavaScript airthmetic division operator is used to find the quotient of operands. The left operator is treated as a dividend and the right operator is treated as a divisor.

Syntax:

a/b

Return Type: It returns the quotient of the operands

Example 1: In this example, we will perform basic division on Numbers.

Javascript




console.log(100/20);
console.log(Infinity/0);
console.log(Infinity/-0);


Output:

5
Infinity
-Infinity

Example 2: In this example, we will perform a division operation on a string/non-numbers.

Javascript




console.log("100"/20);
console.log("Hello"/0);


Output: The string is converted to its corresponding number type and the string which does not contain any number is converted to NaN.

5
NaN

Supported Browsers:

  • Chrome
  • Edge
  • Firefox
  • Opera
  • Safari

We have a complete list of Javascript Arithmetic operators, to check those please go through this JavaScript Arithmetic Operators article.

Whether you’re preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, neveropen Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we’ve already empowered, and we’re here to do the same for you. Don’t miss out – check it out now!
RELATED ARTICLES

1 COMMENT

Most Popular

Dominic
32489 POSTS0 COMMENTS
Milvus
126 POSTS0 COMMENTS
Nango Kala
6862 POSTS0 COMMENTS
Nicole Veronica
11983 POSTS0 COMMENTS
Nokonwaba Nkukhwana
12073 POSTS0 COMMENTS
Shaida Kate Naidoo
6995 POSTS0 COMMENTS
Ted Musemwa
7236 POSTS0 COMMENTS
Thapelo Manthata
6946 POSTS0 COMMENTS
Umr Jansen
6930 POSTS0 COMMENTS