What kind of variables will NOT pass through this:
if(myVar){//code}
Boolean false? NULL? Boolean false and NULL? Anything else?
Thank you.
All the following falsy values as:
nullundefinedNaN0"" (an empty string)falseAnything else converted to Boolean will yield true.
More info:
ToBoolean internal operationIf you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With