Pow function

Report a typo

In the body of the pow function, write a method of the Math object that will take two numbers: x and y, passed to the function as parameters, and raise x to the power of y. The result of the calculation must be returned by the pow function.

Write a program in JavaScript
function pow(x, y){
// write your code here

}
___

Create a free account to access the full topic