JavaScript 거듭제곱 3가지

Eugenius1st·2022년 6월 27일

JavaScript

목록 보기
1/67
post-thumbnail

자바 스크립트에는 3가지 거듭제곱 방식이 있다.

x라는 숫자를 거듭제곱하여 결과가 pow일 때

pow === a*a ;

pow === a** 지수;

pow === Math.pow(a,2) ;
profile
자신만의 속도로

0개의 댓글