I keep starting and stopping with trying to refresh myself with this. I have the buttons which hold a value of “.5”, “.10”, “.15” and so on. When the user selects a tip amount I am trying to see what gets returned right now. The value attribute returns text, and so to make it a number I would need to parse it. However, when I try to parse it and then console.log to see what comes back I get NAN
I havent checked that function yet. I will still need to do some parsing there, but just the get tip function at the beginning returns NAN. Before I even get to the calculate function I already get NAN
Ahh after looking at the notes more carefully. So, if the first character can not be converted then it returns NAN. Of course, it is right in the name as well parseINT meaning it can only do whole numbers. I would need parseFloat or the Number method