Math Math.PI 원주율 반환 Math 메서드 Math.abs 절대값 반환(0 또는 양수) Math.round 반올림 Math.ceil 올림 Math.floor 내림 Math.sqrt 제곱근 Math.random 0~1 미만의 실수 const random = Math.floor((Math.random() * 10) + 1); console.log(random); // 1에서 10 범위의 정수 Math.pow 두번째 인수를 지수로 거듭제곱한 결과 반환 //ES7 지수 연산자가 보기 더 좋음 2 ** 2 ** 2; //16 Math.max 최대값 Math.min 최소값