JavaScript » Math » sqrt

Syntax:
Math.sqrt(x)

This method returns the square root of a number. If that number is negative, then the Netscape browser returns the value of NaN, whereas the Internet Explorer browser returns an Error message.