Ouattara• 200
@Kaji17
Posted
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