Can (a== 1 && a ==2 && a==3) return true??

in programming •  7 years ago 

const a = {
 x: 1,
 toString: function () {
   return a.x++;
 }
}
if (a == 1 && a == 2 && a == 3) {
 console.log('Hello World!');
}

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!