JavaScript code to find a power of a number | Example code

Use the Math.pow (base, exponent ) method to find a power of a number in JavaScript. The pow() method returns the value of x to the power of y (xy). Here is a small example of “Power of a number” 52 = 5 * 5, value is 25 he parameters used in Math.pow() method − base (x) − Read More…