A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.geeksforgeeks.org/javascript/division-arithmetic-operator-in-javascript/ below:

Division(/) Arithmetic Operator in JavaScript

Division(/) Arithmetic Operator in JavaScript

Last Updated : 23 Jul, 2025

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:

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



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4