← All tasks
🔍
Programming Intermediate

Fix a Type Juggling Bug in a Price Total

⏱ 5 min ⭐ 120 XP 🔁 3 attempts allowed

What you'll do

Find the line where string input from a form is used in arithmetic without validation, risking unexpected results.

Scenario

A checkout total comes out wrong whenever the quantity field is submitted with stray whitespace, like ' 3 '.

Ready to try it?

Create a free account and try "Fix a Type Juggling Bug in a Price Total" free for 7 days, no card required. Earn 120 XP and track your internship progress.

Already have an account? Sign in