+ 2
Explain pls the output of this code
var x ="5", y=10 document.write(+x+y) The output is 15. Why? I thought it should be something like 510...
2 Antworten
+ 5
+ symbol before X converts X into number/interger type, therfore answer is 15.
+ 1
Rhythm Khandelwal 「HAPPY TO HELP」 thankyou guys ☺ that makes sense