How To Find The Max Number In An Array (Easy Javascript Algorithm Problem)
Write a function that takes in an array of numbers and outputs the maximum number. Ex. Input: [1, 2, 3] Output: 3 Input [3, 6, 4, 5, 2, ,1] Output:6 Here is my video explanation of how I solved the problem in Javascript.
Write a function that takes in an array of numbers and outputs the maximum number. Ex. Input: [1, 2, 3] Output: 3 Input [3, 6, 4, 5, 2, ,1] Output:6 Here is my video explanation of how I solved the problem in Javascript.