← Back to Question List
JavaScript Quiz #12
Total Price With forEach
Given 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];