0
can't add two numbers.(take input using prompt) Help please! 🙏
2 Antworten
+ 5
Prompt returns string type value by default so it will be concatenated not added.
you have to convert them to Number using Number()
https://code.sololearn.com/Ww87iJWm1Bcv/?ref=app