0
4
15. Write a JavaScript function to compute the value of bn where n is the exponent and b is the bases. Accept b and n from the user and display the result.
1 Respuesta
+ 2
Try this :
window.onload = function main() {
var x = prompt("Input base") ;
var y = prompt("Input exponent") ;
alert(Math.pow(x,y))
}