JS 노트(Math.pow())

주재일·2021년 5월 15일
const num = ["2", "7"];
console.log(Math.pow(num[0], num[1]))

출력 값 : 128

첫번째 인자 Base, 두번째 인자 제곱근 할 수


참고사이트
https://codechacha.com/ko/java-math-pow/

profile
늦게 시작했으니 저는 늦둥이인가요?

0개의 댓글