Question: 12. A program is designed to determine the minimum value in a list of positive numbers called numList. The following program was written var

12. A program is designed to determine the minimum value in a 

12. A program is designed to determine the minimum value in a list of positive numbers called numList. The following program was written var minimum = for(var i = 0; i < numList.length; i++){ if (numList[i] < minimum) { minimum numList[i]; } } console.log("The minimum is" + minimum); Which of the following can be used to replace so that the program works as intended for every possible list of positive numbers? 0000 A. 0 B. 1000000 C. numList.length D. numList[0]

Step by Step Solution

3.34 Rating (151 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The correct replacement for in order to determine the minimum value in the list of positive number... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!