math
![[JavaScript] 자바스크립트 Math 정리](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FsA3aA%2FbtrqdSYsuN8%2FooKkW9J3gkMsFhEbDK0jb0%2Fimg.png)
[JavaScript] 자바스크립트 Math 정리
절댓값 (Absolute Number) Math.abs(x)를 하면 x의 절댓값 리턴 console.log(Math.abs(-10)); console.log(Math.abs(10)); 10 10 최댓값 (Maximum) Math.max 함수에 파라미터로 여러 수를 넘겨주면, 그 중 가장 큰 값 리턴 console.log(Math.max(2, -1, 4, 5, 0)); 5 최솟값 (Minimum) Math.min 함수에 파라미터로 여러 수를 넘겨주면, 그 중 가장 작은 값 리턴 console.log(Math.min(2, -1, 4, 5, 0)); -1 거듭제곱 (Exponentiation) Math.pow(x, y)를 하면 x의 y승의 결과값 리턴 console.log(Math.pow(2, 3)); con..