JavaScript: Max in set #24
Ready — edit the code above and click Run.
console.log(Math.max(24,25,26,27,28));
Try solving on your own first, then reveal the official answer.
Array methods are core to JS interviews.