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 Calculator using vanilla JS and pure CSS

@johannesteshome

Desktop design screenshot for the Tip calculator app coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
2junior
View challenge

Design comparison


SolutionDesign

Solution retrospective


How is my implementation?

Community feedback

IRVINE MESA 1,855

@DrMESAZIM

Posted

hi @John-droid-dotcom I observed that this is your first solution therefore as expected there are plenty of issues to address . I will attempt to give your areas to address

1.You need to reduce the min-width on your media queries . 1280px is to large 2. the input figure for number of people referred in index.html line 46 show not allow decimal numbers 3.Overall the calculator is not functioning as expected , check out this tip-calculator @kenreibman site address https://kenreibman.github.io/tip-calculator-app/ As a newbie I urge you to start by challenges that don't require complicated JavaScript

I wish all the best in your career as web developer

Marked as helpful

1
Paola 320

@paolas771

Posted

Hello some of you math is wrong in the calculate function else statement. The billamounttotalperson should be the (tip amount + bill total) / number of people. What you are doing is taking the tip amount and multiplying it by 2 which there is no need. On the billamountperperson you should do (bill amount * tip value) / number of people. I would also recommend doing an event listener on the number of people input instead of the tip button just cause the user will be filling out the form from top to bottom. Other you did a good job!!

Marked as helpful

0

@johannesteshome

Posted

Thank you it was my very first project thanks for the feedback. @paolas771

0

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