This page is Ready to Use

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

sqrt

Summary

Returns the square root of a number.

Syntax

Math.sqrt( number )

Examples

var v1 = Math.sqrt(9);
document.write(v1);
// Output: 3

Remarks

The required number argument is a numeric expression.

If number is negative, the return value is NaN.

See also

Other articles

Attributions