
Tip Calculator App Using JS
Design comparison
Solution retrospective
I'm proud that i was able to use JavaScript to complete this project.
What challenges did you encounter, and how did you overcome them?It was smooth
What specific areas of your project would you like help with?JavaScript
Community feedback
- @Guilherme-Porto-SilvaPosted 13 days ago
If the inputs were type="number", the users would be able to write only numbers in them, preventing some issue possibilities and making the H.T.M.L. more semantic.
When you write "if (numPeople === 0)", your client's browser checks if numPeople is a number, wich is time and computation power waste, since you had alredy used the "Number(this.value);", therefore, you could have put only two equal signs, "if (numPeople == 0)"
0
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