+ 3
Why the output not â9solo215â? Can anyone explain pls
var x= 2+7+"solo"; var y="2"+ 6+9; alert(x+y); Output: â9solo269â
2 Answers
+ 18
1. "2" + 6 ="26"
2. "26" + 9 = "269"
If you want to get â9solo215â try this:
var x= 2+7+"solo";
var y="2"+ (6+9) ;
alert(x+y);
+ 1
Thanks, that was really silly