Back to Multiple Choice Quiz
Total Price With forEach
JavaScript quiz · Question 12Given const prices = [10, 20, 15];, which approach correctly calculates and logs "Total price: 45"?
Code
1const prices = [10, 20, 15];
Given const prices = [10, 20, 15];, which approach correctly calculates and logs "Total price: 45"?
1const prices = [10, 20, 15];