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.
Math methods
Pow function
Report a typo
Write a program in JavaScript
function pow(x, y){
// write your code here
}
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.