← All JavaScript lessonsLesson 12 of 12 · ⭐ 30 XP

The Final Challenge

⭐ 0 XP · 🔥 0 day streak

Last one — and it is a real program, the kind shops run every day: adding up a basket of prices.

Your mission: loop over the prices and add them up, then print Total: 20. One more choice after that: a total of 20 or more earns Free delivery! — anything less prints Keep shopping.

Checks

    Get your certificate 🏆