F
Math.max(...[6, 5, 0, 10, 3])
Size: a a a
F
Math.max(...[6, 5, 0, 10, 3])
AP
AP
KA
F
Т
F
KA
let numbers = [1, 2, 3, 4];
Math.max.apply(null, numbers)
Math.min.apply(null, numbers)
V
const arr = [1, 3, 5, 10, 2]
let max = arr[0]
for (let i = 1; i < arr.length; i++) {
if (arr[i] > max) max = arr[i]
}
L
let numbers = [1, 2, 3, 4];
Math.max.apply(null, numbers)
Math.min.apply(null, numbers)
V
KA
KA
Т
DT
DT
AP
AP
DT