내장 객체(Math.methods) 알아보기 종류 Math.PI파이값 반환 Math.ceil(n)올림Math.ceil(3.000001) //4Math.floor내림Math.floor(3.999) //3Math.random()0 아래로 랜덤👇👇아래 추가설명 참고Math.abs(n)정수로 반환 Math.pow(i,n)i의 n승Math.pow(2,5) //32 Math.random()0 아래로 랜덤 숫자 반환Math.floor() 사용하여 활용Math.floor(Math.random() * 5)Math.random() * 랜덤 돌리고싶은 수 + 시작하는 수Math.floor(Math.random() * 5 + 1);//1-5사이의 랜덤 수 이 외에도 정말 많은 Math 메소드들이 있는 것 ..