JavaScriptNumberMath.pow

Returns the base to the exponent power.

문법

Math.pow(base, exponent)

예제

아래 값을 입력하면 예제에 즉시 반영됩니다.

console
Math
console.log(Math.pow(2, 10));   // 1024
console.log(Math.pow(9, 0.5));  // 3