Facebook Pixel
What Are Truthy and Falsy Values?

How many falsy values are there in JavaScript?

The answer

JavaScript has a small set of falsy values including false, 0, '', null, undefined, and NaN.

More FAQs in What Are Truthy and Falsy Values?

Yes. Empty arrays are truthy in JavaScript.

Yes. Empty objects are truthy.

No. Any non-empty string is truthy.

Still have questions?

Browse all our FAQs or reach out to our support team

Want to upskill yourself?

Your learning library

Small steps. Big possibilities.

Find your next course. Build something great.

Our courses are taking a Coffee break, but your curiosity shouldn't. Stay engaged with namastedev linkedin, youtube, discord and other resources while you wait.

0
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.