CJCoding With Joseph
15free / daySign inCreate account
Back to Multiple Choice Quiz

Select topics to narrow your question pool, then enable Random to jump to a random question matching your filters.

Topics

Sum Array With While

JavaScript quiz · Question 9
easyLoops

Given const numbers = [4, 8, 2, 6];, which code sums the elements and logs "Total: 20"?

Code

1const numbers = [4, 8, 2, 6];