I am Falsy

In JavaScript, apart from Boolean values like true and false, all other values also have some boolean value corresponds to it.
For example
false
“”(empty string)
0(zero)
undefined
null
NaN(not a number)

are considered falsy values.

So all the other values except these are truthy values.

Ex “false” (String false) under conditional statement returns true.

Surprising, Yeah, check and practice these values so you can remember.

Facebooktwittergoogle_plusredditpinterestlinkedinmail

One thought on “I am Falsy

Leave a Reply

Your email address will not be published. Required fields are marked *