← Back to Question List
JavaScript Quiz #9
Sum Array With While
Given 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];