Tip Calculator with HTML, CSS & JS

Solution retrospective
Hi, everyone. ¿Is there a better way to use JS in forms? I feel like my code is a little messy.
Please log in to post a comment
Log in with GitHubCommunity feedback
- @Nova988
Hello,
In 2022 you should try to avoid using var. Instead of var use let and const.
Here you can read why you shouldn't use it : https://medium.com/@codingsam/awesome-javascript-no-more-var-working-title-999428999994.
Hope it helps.
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