Beginner
Fix the Price Bug Where the Data Enters
addTax correctly promises a number, but fromInput is text from a form field. Make the program type-check and print 118.
Don't change addTax, and don't use as or any to silence the error: convert the value instead.
What Check tests
- Your code has no type errors
- The console prints
118 addTaxis unchanged- No
asorany
Stuck? One hint at a time
The solution unlocks after your first Check. Try first: that is where the learning happens.
Runs in your browser. Your code is saved here.
Press Run to see the page.
Console
Nothing printed yet.