Design comparison
SolutionDesign
Community feedback
- @Kaji17Posted about 2 years ago
Hi @Moorroww ! thanks for your solution i can use some element of your codebase for improve my solution And👋 Here are some suggestions to help improve your code:
->you have to add a condition to reset the form in your Js Code:
resetBtn.addEventListener('click', () => { if (numberOfPpl !== '' ...){ } })
->you can use buttons instead of <input type='button' ...> you can use the value property in buttons to avoid manually intentiating in javascript the values of different button type inputs
1
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