Unit 4 Final Project Help

Can someone tell me what is wrong with this code? I have been staring at it and I don’t know why this code is not working. The students is trying to make the results box update when selecting information from the drop down options.

The first problem I see is that the values in the drop down boxes are not numbers. If you insist on getting a number you will get NaN instead. (Not a Number) You can’t do much math with that.

The second is that you are running updateresults() before you change anything in the drop down boxes. You only need the one call inside the onEvent at the bottom.