Division Operator in JavaScript



Division Operator

In JavaScript, arithmetic Division Operator is used to find the quotient of the division of two numeric values.

Syntax

/ symbol is used for arithmetic division operator.

Arithmetic division operator takes two values/variables as operands and returns the result of the left operand divided by the right operand.

a / b  //a divided by b
6 / 4  //6 divided by 4

Examples

1. Find the quotient of a divided by b using division operator.

var a = 6;
var b = 4;

var result = a / b;

console.log(result);