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