3 points: Write a function that takes an array of numbers
as a parameter and returns its minimum value. You may either use
the sort function with an appropriate comparision function or you
may search the array. You may assume that the array has at least one
element.
function min(num_array) {
min = num_array[0];
for (i in num_array) {
if (num_array[i] < min)
min = num_array[i];
}
return min
}