Knowledge Walls
Laya
Hyderabad, Andhra Pradesh, India
Math.prototype.pow() Method in Math Class of Javascript Syntax with Examples
2337 Views
Usage 
The Math.pow() function is used to return value of the base to the exponent Power.
Syntax 
Math.pow(base, exponent);
Example
var a=Math.pow(9,9);
var b=Math.pow(2,2);
var c=Math.pow(1,1); 
var d=Math.pow(0,0); 
var e=Math.pow(-1,-1);
document.write(a,b,c,d,e);
Output 
387420489
4
1
1
-1
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