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

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

const numArray = [1, 2, 3, 4];
const max = Math.max(...numArray);
Like what you read? Give John Paul Ada a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.