Design comparison
SolutionDesign
Solution retrospective
Any feedback is appreciated, Thank you 🤩✌
Community feedback
- @ASVN2Posted almost 2 years ago
It's look great you can fix the float number after " , " some time the result could be more then 2 number after " , " you can fix it with add toFixed( )
line 41 = tipAmount.innerText =
${(amount).toFixed(2)}
line 42 = totalAmount.innerText =
${(amount / data.people).toFixed(2)}
Marked as helpful1
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord