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

Tip calculator app with flexbox and vanilla js

@moheb2000

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


Hey. I don't know js enough so I think my code is not completely efficient.

Community feedback

Kelvin 915

@Kl3va

Posted

You calculation for the total/person is incorrect. You might want to work on that

Marked as helpful

0

@moheb2000

Posted

@Kl3va Do I need to subtract tip from bill and then divide it to people numbers?

0
Kelvin 915

@Kl3va

Posted

@moheb2000 Simply do ( bill / number of people) + the value of tip amount/person.

1
Kelvin 915

@Kl3va

Posted

@moheb2000 You’re welcome.

0

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