+ 5
Why my number is converted into string in JavaScript
I want to know why my code is not working properly instead of adding they showing the numbers ? https://code.sololearn.com/W6vheWg1326o/?ref=app
3 Respuestas
+ 1
Parse to Number like this:
https://code.sololearn.com/WJ5l09dykE09/?ref=app
+ 5
Thanks for your answer
+ 1
you got string value. try convert input to number with unary operator +prompt1 and +prompt2