Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Responsive Tip Calculator

Ali Ahmed 680

@Dany-GitHub

Desktop design screenshot for the Tip calculator app coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
2junior
View challenge

Design comparison


SolutionDesign

Solution retrospective


Any feedback is appreciated, Thank you 🤩✌

Community feedback

David 120

@ASVN2

Posted

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 helpful

1

Ali Ahmed 680

@Dany-GitHub

Posted

@ASVN2 I forget about it, Thank You! ❤

1

Please log in to post a comment

Log in with GitHub
Discord logo

Join 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