Medium

JavaScript Shopping Cart Bug: Object Reference Mutation Affecting Total Price Calculation

You're debugging a shopping cart implementation where prices are acting strangely. What surprising behavior might occur with this code?

Choose an option below