FreeCodeCamp exercise trouble

I’m working with freecodecamp, as well and I’m nearly done with the JavaScript certification, but I’m having a lot of trouble with the last exercise needed. This is a cash register exercise.
Can anyone offer any tips?

Hey there, try asking this question on freecodecamp’s forum.