Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Tip Splitter

Norbert 120

@Moorroww

Desktop design screenshot for the Tip calculator app coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
2junior
View challenge

Design comparison


SolutionDesign

Community feedback

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

Please log in to post a comment

Log in with GitHub
Discord logo

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