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

Total Price With forEach

JavaScript quiz · Question 12
easyLoops

Given const prices = [10, 20, 15];, which approach correctly calculates and logs "Total price: 45"?

Code

1const prices = [10, 20, 15];