JavaScript · Junior · Question 13 of 75

Which of these values is falsy?

Explanation

Falsy values: false, 0, -0, 0n, '', null, undefined, NaN. Everything else is truthy, including the string '0', an empty array [] and an empty object {}.

Further reading

Problem with a question

JavaScript · Junior · question 13

Test yourself

Take the JavaScript · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz