Shopping Cart Total

Use JavaScript reduce() to total a shopping cart by multiplying each item's price by its quantity, including an empty cart total of zero.

JavaScript

Challenge overview

Format
Build a Function
Category
JavaScript
Difficulty
Intermediate
javascriptarrayshigher-order-array-methodsreduceaccumulator

Keep practicing

More coding challenges