Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
164 B
1
Indexable
Never
let myArray = [45, 3, 4, 14, 24, 12];
let arr1 = [0]
let arr2 = [1]
for (i = 0; i < myArray.length; i++) {
    arr1 = Math.max(...myArray)
}
console.log(arr1)