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