Math.pow() / Math.sqrt()
Exponents and square root.
Syntax
Math.pow(base, exponent) · Math.sqrt(number)
Description
pow calculates powers (same as base ** exponent), sqrt gives the square root.
Example
Loading editor…
Expected output
1024 12
When to use?
Geometry, exponential growth, distance calculations.