Math object
Math object
JavaScript's built-in Math
object provides many methods for arithmetic calculations.
Example:
> Math.sqrt(36)
= 6
> Math.sqrt(2)
= 1.4142135623730951
JavaScript's built-in Math
object provides many methods for arithmetic calculations.
Example:
> Math.sqrt(36)
= 6
> Math.sqrt(2)
= 1.4142135623730951