I am having trouble figuring out where to even start with figuring out the minimum value in an array using an if statement. Part of me feels like this should be easy, and the other part feels like my brain is looping into oblivion over this problem. Has anyone figured this out to the point that they may be able to hint around at what I’m missing? In the meantime, I just be over here talking to myself and trying stuff out.
"Create a function with an array of numbers as its parameter. The function should iterate through the array and return the minimum value from the array.
Hint: Use what you know about
if statements to identify and store the smallest value within the array."