Account
Categories

Division Operator


You use the division operator (/) in a webpage for mathematical calculations.

It helps in dividing two values (numbers), which are also called operands, and together with the slash (/), they perform the division.

Syntax:

let result = left_operand / right_operand;

Example:

let a = 20;
let b = 5;
let div = a / b;
console.log("The division is: " + div);

Output: