Math.max() Math.min() : Math.max() ์ ๋ ฅ๊ฐ์ผ๋ก ๋ฐ์ 0๊ฐ ์ด์์ ์ซ์ ์ค ๊ฐ์ฅ ํฐ ์ซ์๋ฅผ ๋ฐํ : Math.min() ์ ๋ ฅ๊ฐ์ผ๋ก ๋ฐ์ 0๊ฐ ์ด์์ ์ซ์ ์ค ๊ฐ์ฅ ์์ ์ซ์๋ฅผ ๋ฐํ // Math.max() Math.max(5, 7, 1, 3, 9); // 9 // Math.min() Math.min(5, 7, 1, 3, 9); // 1 ๋ฐฐ์ด์์ ์ต๋/์ต์๊ฐ์ Function.prototype.apply(thisArg, [argsArray]) + Math.max() ๋ฅผ ์ฌ์ฉํด์ Math.max.apply(null, arr)๋ก ๊ตฌํ ์ ์๋ค. apply()๋ฅผ ์ฐ๊ธฐ ์ซ์ผ๋ฉด spread์ฐ์ฐ์๋ฅผ ์ฌ์ฉํ๋ฉด ๋๋ค. Math.max(...arr) const arr = [5, 7, 1, 3, 2..