Codington
0 of 10 problems solved • 0%
Use in a course

Exercise prompt

Total Object Properties

A loop can visit an array of objects and add one numeric property from each object to an accumulator.

Your task

Complete the loop so totalPrice becomes the sum of all three product prices, then display Total: 45.