Knowledge Walls
Laya
Hyderabad, Andhra Pradesh, India
Math.prototype.sqrt() Method in Math Class of Javascript Syntax with Examples
1992 Views
Usage 
The Math.sqrt() function is used to find the square root of given number.
Syntax 
Math.sqrt(x)
 
Example
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
Best Lessons of "Javascript Syntax with Examples"
Top lessons which are viewed more times.
  Copyright © 2014 Knowledge walls, All rights reserved
KnowledgeWalls
keep your tutorials and learnings with KnowledgeWalls. Don't lose your learnings hereafter. Save and revise it whenever required.
Click here for more details