Tell us what’s happening:
I tried to complete the lab using this code:
const largestOfAll = (arrays) => {
let largestNumbers = ;
for (currentArray of arrays) {
largestNumbers.push(Math.max(...currentArray));
}
return largestNumbers;
}
It works when I run it locally but for some reason it fails on the lab tests
Your code so far
const largestOfAll = (arrays) => {
let largestNumbers = [];
for (currentArray of arrays) {
largestNumbers.push(Math.max(...currentArray));
}
return largestNumbers;
}
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36
Challenge Information:
Build the Largest Number Finder - Build the Largest Number Finder