+ 1
Add Function
I want to make an add function but it is adding both numbers combinely if the first is 5 and the second is 10 then it will be 510 so plz help me.
4 Antworten
+ 2
You probably concatenate strings "5" and "10". Write + in front of nums in function to parse it like nums
+ 2
Use parseInt(); to extract integer from a string / prompt!
0
Thanks for helping me!