Fix the Shopping Cart Total

Fix a JavaScript cart total function so it multiplies every item's price by its quantity, includes all lines, and returns zero for an empty cart.

JavaScript

Challenge overview

Format
Fix the Bug
Category
Debugging
Difficulty
Beginner
arraysobjectsfunctionsreducedebugging

Keep practicing

More coding challenges