Three ways you can find the largest number in an array using JavaScript
Sonya Moisset
46326

If you’re coding in ES6, you can also try:

const numArray = [1, 2, 3, 4];
const max = Math.max(...numArray);
Show your support

Clapping shows how much you appreciated John Paul Ada’s story.