Division

Syntax

x / y

Explanation

The division operator returns the quotient of the two operands as a new number.

Examples

1 / 2    // 0.5
0 / 1    // 0
4 / 2    // 2

Last updated