Easy

This question is a daily question and will count towards your daily streak.

You have a shopping cart with multiple items, each represented as an object in an array. Which method allows you to calculate the total cost of all items in the cart efficiently?

Choose an option below