Finding the minimun number in an Array

Let see…

To find the minimum number in an array you will have to browse through an array filled with random numbers and compare each find with a the previously lowest find until the end if reached.

Example:

Array filled with random numbers: 9 3 2 4 6 1 7 8 10

Minimum Number is: 1

In the example above we grab as initial vale “9” and compare it with the rest of the elements in the array. Is “3” lower than “9” –  YES! Then, the minimum number becomes “3” subsequently until the loop finds the minimum number “1” and reaches the end of the array.

Check the code below and or visit my fiddle here:  http://jsfiddle.net/luisgromero/PXHNW/3/