@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