QuestenaՎարժանք, որը ցույց է տալիս՝ ինչ կրկնել հաջորդիվ
Հարց 20

Spot the false classification of a value as falsy.

  1. NaN is falsy
  2. 0n is falsy
  3. The string "0" is falsyՃիշտ պատասխան
  4. The empty string is falsy

Բացատրություն

The string "0" is nonempty and therefore truthy, so classifying it as falsy is incorrect. Numeric zero is falsy, but a string's textual appearance does not turn it into the corresponding number.

Շարունակեք այս թեստով

Սկսել վարժանքը
Հարց 20: Spot the false classification of a value as falsy. · JavaScript Fundamentals · Questena