What kind of variables will NOT pass through this:
if(myVar){//code}
Boolean false? NULL? Boolean false and NULL? Anything else?
Thank you.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
All the following falsy values as:
nullundefinedNaN0""(an empty string)falseAnything else converted to Boolean will yield
true.More info:
ToBooleaninternal operation