+ 6

(solved ) Why does it not work?

When I try to use this calculator, I get the Nan (not a number) error. Does anybody know why? https://code.sololearn.com/W8Zb963TyE3N/?ref=app

25th May 2019, 9:23 AM
Nerderkips
Nerderkips - avatar
3 Réponses
25th May 2019, 9:51 AM
Mawlood Fareq
Mawlood Fareq - avatar
+ 7
Thanks!!!
25th May 2019, 10:13 AM
Nerderkips
Nerderkips - avatar
+ 3
In the "regnut" function, you got the numbers by .value, which is only working for inputs. You should use .innerHTML
25th May 2019, 9:43 AM
Airree
Airree - avatar