var x = parseInt(prompt("Enter the base: ")) var y = parseInt(prompt("Enter the power: ")) var value = parseInt(Math.pow(x, y)) console.log(value)