Find minimum and maximum values:
Math.min(5, 2, 9, 1) // 1
Math.max(5, 2, 9, 1) // 9
// With an array, use spread
let nums = [5, 2, 9, 1]
Math.min(...nums) // 1
Math.max(...nums) // 9
These accept any number of arguments. Use spread (...) to pass array elements as separate arguments.