Can you still?

Which of these values are falsy?

0;
new Number(0);
('');
(' ');
new Boolean(false);
undefined;

You missed this one before

There are 8 falsy values:

  • undefined
  • null
  • NaN
  • false
  • '' (empty string)
  • 0
  • -0
  • 0n (BigInt(0))

Function constructors, like new Number and new Boolean are truthy.

Question 35 · see the original (opens in a new tab)