-
-
Save bitfishxyz/9f2f22c12e8491adc8e4875a7e58b641 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function max(arr){ | |
let max = arr[0]; | |
for (let ele of arr) { | |
if(ele > max) { | |
max = ele; | |
} | |
} | |
return max; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment