Hi All,
var a="40" +10;
var b= "40"- 10;
alert(a); =>4010
alert(b); =>30
why? can any one explain
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Rajeesh MenothRank #118 · 18.4K reputationPosted Apr 27, 2016, 10:21 PM EDT
Manas MohapatraRank #182 · 13.2K reputationPosted Apr 27, 2016, 10:36 PM EDT
Upendra Pratap ShahiRank #329 · 7.5K reputationPosted Apr 28, 2016, 1:28 AM EDT