+ 1
Please why is this code printing +++ when i input the supposed value kike 1,2,3,4 or 5 from input field.
3 Answers
+ 2
Cindy K Hink
Convert input to number. When you take input it is considered as string by default.
var x = Number(n1.value);
+ 1
It's working
+ 1
Yeeah i just edited it