Mission scenario
An online store has a discount calculator.
A product costs ₹800 and the discount is 10%.
Your objective
Fix calculateTotal so the correct discounted price is returned.
- Return ₹720 for a price of ₹800 with a 10% discount.
- Return the expected total for the other supplied test cases.
- Example input
- ₹800, 10% off
- Current output
- ₹800
- Expected total
- ₹720
Your solution is evaluated against fixed mission tests in a browser worker. Learner code is not sent to the server. This client-side restriction is not a general-purpose security sandbox.
Want to explore the related course? Full-Stack Development