Talk:Adding Two Numbers - JS
The error checking code is not working. I tried copying the code in the tutorial but that didn't work either. If I typed in one number and nothing in the other box, I simply got NaN in the Total box, but no alert.
I changed the code to assign numbers to FirstNumber and SecondNumber variables, then did the isNaN on those variables instead. That worked fine.
Thanks Andy