PatrickFrankAIU / ITWEB220-2404A

Learning resources for students in ITWEB 220, term 2404A.
0 stars 0 forks source link

Exercise: Array with Helpful Function #24

Open PatrickFrankAIU opened 3 months ago

PatrickFrankAIU commented 3 months ago

Add a function to this program called "findMinimum()" that will find the minimum element in an array of numbers.

let numbers = [3, 1, 4, 1, 5, 9, 2, 6, 5, 3, 5];
console.log(findMinimum(numbers)); // correct output should be 1