Math.sqrt() - 제곱근을 반환

송한솔·2023년 5월 8일
0

Math.sqrt(x)

제곱근을 반환해주는 메서드

var a = Math.sqrt(9);
console.log(a) // 3

입력된 숫자의 제곱근을 반환합니다.

0개의 댓글