This looks good. Everything is working well. The styles are pretty close the images.
I notice when the amount is 0 or the number of people is 0 the results at the bottom show NaN (Not a Number) or infinity. This makes sense to us, but people using your app might be confused.
Challenge: Can you check for these situations and show a reasonable result if the amount or the number of people is not within expected ranges?
Stretch Challenge: Currently everything is working fine but maybe it can work even better. Notice that you always must press the calculate button to see the results. What if you used the onchange or oninput you can update the results as values are entered into the fields.
This looks good. Everything is working well. The styles are pretty close the images.
I notice when the amount is 0 or the number of people is 0 the results at the bottom show NaN (Not a Number) or infinity. This makes sense to us, but people using your app might be confused.
Challenge: Can you check for these situations and show a reasonable result if the amount or the number of people is not within expected ranges?
Stretch Challenge: Currently everything is working fine but maybe it can work even better. Notice that you always must press the calculate button to see the results. What if you used the
onchange
oroninput
you can update the results as values are entered into the fields.