exponent of two numbers in javascript

JavaScript
math.pow(base, exponent)
Source

Also in JavaScript: