Skip to main content

Practice ยท 5 of 5

Debug: the always-expensive shipment

Every customer is charged 12. The intended tiers: prime โ†’ 0, items >= 10 โ†’ 5, items >= 3 โ†’ 8, else 12. Find and fix the condition bugs (order and boundary) in shippingCost.

Difficulty: beginner

Back to lesson: Practice: Practice: Decisions