Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted 9 months ago

Responsive Tip Calculator | HTML, CSS, JavaScript

P
Ishmael Sunday•250
@okayishmael
A solution to the Tip calculator app challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


What are you most proud of, and what would you do differently next time?
  • Growth in working with plain CSS for responsive web.
  • I am also gaining more confidence in JavaScript.
What challenges did you encounter, and how did you overcome them?

My code wasn't populating the calculated results. I used dev tool debug but I wasn't getting any error message. So I used AI to tell me why my code wasn't working.

What specific areas of your project would you like help with?

When there is an error, people input should be highlighted red. It is not doing so

<input type="number" id="people" class="icon-person" placeholder="0" />
const numberOfPeople = document.getElementById("people");
 numberOfPeople.classList.remove("error"); // Remove highlight
 errorMessage.style.display = "none"; // Hide error message
Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on Ishmael Sunday's solution.

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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License