Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js pow function

var x = parseInt(prompt("Enter the base: "))
var y = parseInt(prompt("Enter the power: "))

var value = parseInt(Math.pow(x, y))

console.log(value)
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #js #pow #function
ADD COMMENT
Topic
Name
4+2 =