Usage
The Math.sqrt() function is used to find the square root of given number.
|
var a=Math.sqrt(9);
var b=Math.sqrt(6);
var c=Math.sqrt(11);
var d=Math.sqrt(05);
var e=Math.sqrt(-891);
document.write(a,b,c,d,e);
|
Output
3
2.449489742783178
3.3166247903554
2.23606797749979
NaN
|