0

I want to add these number but it adds literally. What do I do to add the variables?

https://code.sololearn.com/W5eIVwEpoBOe/?ref=app

2nd Nov 2017, 3:58 PM
Roland Doctor
Roland Doctor - avatar
2 Réponses
+ 20
//check this add Number before a & b var a= prompt("heloo"); var b= prompt("pk"); var total = Number(a) + Number(b); document.write (total);
2nd Nov 2017, 3:59 PM
Lord Krishna
Lord Krishna - avatar
0
Thanks Krishna, you're awesome!
2nd Nov 2017, 4:02 PM
Roland Doctor
Roland Doctor - avatar