728x90 320x100 SMALL [JAVAScript/자바스크립트]수학, 랜덤, 삼항 연산자 Math 다른 객체와 달리 생성자가 없음 정적임 먼저 생성하지 않고도 모든 메서드의 속성을 사용가능 상수(property) Math.property Math.E // returns Euler's number Math.PI // returns PI Math.SQRT2 // returns the square root of 2 Math.SQRT1_2 // returns the square root of 1/2 Math.LN2 // returns the natural logarithm of 2 Math.LN10 // returns the natural logarithm of 10 Math.LOG2E // returns base 2 logarithm of E Math.LOG10E // returns base 10.. 2022. 10. 12. 이전 1 다음 728x90 반응형 BIG