Running loop to get max number in array
CarlyRaeJepsenS (1)

What's up guys, I'm trying to find the greatest number in an array with a loop. Although I could easily just use a function, I want to use a loop (for the sake of learning). What am I doing wrong?
https://repl.it/join/vpxfyfaa-carlyraejepsens

You are viewing a single comment. View All
Answered by ash15khng (685) [earned 5 cycles]
View Answer
CarlyRaeJepsenS (1)

@ash15khng Thanks man! That'll be a good way for me to use .forEach 👍