8. What will be printed to the console after this program runs? var numbers = [2, 5, 3, 1, 6] function changeNums (numList, addNum, subtractNum){ for(var i-0; i


8.<br>What will be printed to the console after this program runs?<br>var numbers =<br>[2, 5, 3, 1, 6]<br>function changeNums (numList, addNum, subtractNum){<br>for(var i-0; i<numList.length; i++){<br>if(numList[i] % 3 == 0){<br>numList[i] = numList[i] + addNum;<br>} else {<br>numList[i] = numList[i]<br>- subtractNum;<br>changeNums (numbers, 3, 2);<br>console.log(numbers);<br>A. [2, 5, 3, 1, 6]<br>B. [0, 3, 6, -1, 9]<br>C. [-1, 2, 6, -2, 8]<br>D. [5, 2, 6, 3, 9]<br>Scroll down to see more<br>

Extracted text: 8. What will be printed to the console after this program runs? var numbers = [2, 5, 3, 1, 6] function changeNums (numList, addNum, subtractNum){ for(var i-0; i

Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here