finding the largest number in an array
DamienVapes

I have some code im having trouble with if someone could give me an idea or an answer id be greatly in your debt.

function getLargestNumber(numbers) {

}

/ Do not modify code below this line /

const largestNumber = getLargestNumber([1, 9, 5]);
console.log(largestNumber, '<-- should be 9');

You are viewing a single comment. View All
Answered by LeonDoesCode [earned 5 cycles]
View Answer
theangryepicbanana

@LeonDoesCode In the future, please do not give direct answers. Instead, try to help them understand how to do it