Can (a ==1 && a== 2 && a==3) ever evaluate to true?
solution1 answered by (Kevin B)
const a = {
i: 1,
toString: function () {
return a.i++;
}
}
if(a == 1 && a == 2 && a == 3) {
console.log('Hello World!');
}
Can (a ==1 && a== 2 && a==3) ever evaluate to true?
const a = {
i: 1,
toString: function () {
return a.i++;
}
}
if(a == 1 && a == 2 && a == 3) {
console.log('Hello World!');
}