[JS] algorithm note

chaeny·2020년 10월 7일

algorithm

목록 보기
3/6
Math.pow() 제곱함수
Math.abs() 절대값으로 반환
Number.isInteger() 주어진 값이 정수인지 판별합니다.
Math.sqrt() 숫자의 제곱근을 반환합니다.
제곱수 찾기 Number.isInteger(Math.sqrt(x))

10진수를 진수 변환할때는 Number객체의 내장 함수인 toString() 사용.
10진수 외의 다른 진수를 10진수로 변환할때는 전역 함수인 parseInt() 사용

MDN
러닝 자바스크립트
ithub

0개의 댓글