raejun
로그인
raejun
로그인
배열에서 Math 사용
raejun
·
2021년 9월 27일
팔로우
0
js
0
Math.max(arg)
arg는 숫자만 가능 -> Math.max(1, 2, 3, 4);
arg가 배열일 때
Math.max(...arr)
Math.max.apply(null, arr)
raejun
정리노트
팔로우
이전 포스트
베열과 객체 복사
다음 포스트
반복문 for of
0개의 댓글
댓글 작성