Design comparison
SolutionDesign
Community feedback
- @nawfelsekrafiPosted almost 3 years ago
Hi @Matheus2004a, I hope you are doing well 😊. you work is almost great.. You can fix the the tip button by the following:
- buttonsPercentTip.forEach(valueTip => { valueTip.addEventListener("click", () => { buttonsPercentTip.forEach(x => x.classList.romove("check-tip");)// add this valueTip.classList.add("check-tip") resultTip = +moneyPerson.value * +valueTip.value / 100 }) })
- for the formula try more to find out how it works. keep up the great work and good luck.
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