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 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
The correct replacement for in order to determine the minimum value in the list of positive number... View full answer
Get step-by-step solutions from verified subject matter experts
