0
I want to add these number but it adds literally. What do I do to add the variables?
2 Answers
+ 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);
0
Thanks Krishna, you're awesome!