Division is used to add several values. To divide values the /
operator is used
The values can be of the following type:
- number
- duration
Syntax
Value1 / Value2
Returns
A new value that is the result of the division of value1
and value2
. The type of the value is dependant on the types of value1
and value2
:
- number / number returns a number
- duration / number returns a duration
- duration / duration returns a number
Examples
35 / 7 /* results in 5 */