Back to Multiple Choice Quiz
Sum Array With While
JavaScript quiz · Question 9Given const numbers = [4, 8, 2, 6];, which code sums the elements and logs "Total: 20"?
Code
1const numbers = [4, 8, 2, 6];
Given const numbers = [4, 8, 2, 6];, which code sums the elements and logs "Total: 20"?
1const numbers = [4, 8, 2, 6];