What condition is necessary to show that `sale` is `true`?

let sale = true;
if (sale){
console.log(‘Time To Buy!’);
}

Am I doing something wrong here or is it a site issue.

1 Like

NaN works as false with me??

 > NaN && true
<- NaN

AND short-circuits on falsy, so that means NaN is also falsy.

1 Like

Thank you! I was getting hung up on this point also, that we weren’t evaluating anything in the parenthesis, but this makes perfect sense after reading this :pray:

1 Like