[Number] pow, sqrt, isInteger

이주희·2022년 4월 10일
0

JS Method

목록 보기
15/17

거듭 제곱 연산자

  1. **
    2 ** 6 : 왼쪽의 숫자를 오른쪽의 숫자만큼 제곱
  2. Math.pow(,)
    Math.pow(2,3) : 왼쪽의 숫자를 오른쪽의 숫자만큼 제곱

제곱근 구하기

Math.sqrt(num)

정수 판별

Number.isInteger(1.1) //false

profile
🍓e-juhee.tistory.com 👈🏻 이사중

0개의 댓글