posted 5 years ago
I've just started learning JavaScript this week and I have to give in an assignment with a form that gets input, makes a calculation, and gives output. I think I figured it out, but the output is not correct. Can someone please help me figure out why this code is not working? This is the .js code.
The regular hours work, but I don't get the extra 4 dollars for the overtime hours. For example, if I put in 60, I get 480, instead of 560.