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 app using JavaScript

P

@sikulamartin

Desktop design screenshot for the Tip calculator app coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
2junior
View challenge

Design comparison


SolutionDesign

Community feedback

P

@barka-dev

Posted

Great job on this project! There are just a couple of areas that could be improved to make it even better:

1- It would be great if you could handle the case when the number "0" is entered in the "Number of People" field, as it currently results in "NaN" or "Infinity" being displayed in the result.

2- Consider using more semantic HTML elements, especially in form controls, to enhance the accessibility of your page. For instance, using <input type="radio"/> for the tips might be more appropriate than using <button>.

Keep up the great work, and happy coding! 😊

Marked as helpful

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