Design comparison
SolutionDesign
Community feedback
- @barka-devPosted 2 months ago
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 helpful0
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