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

What does the expression 0 || "ready" evaluate to?

  1. 0
  2. readyՃիշտ պատասխան
  3. true
  4. false

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

The logical OR operator skips the falsy zero and returns the first truthy operand, which is the string "ready". Returning boolean true would be incorrect because this operator preserves an operand value rather than always producing a boolean.

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

Սկսել վարժանքը
Հարց 24: What does the expression 0 || "ready" evaluate to? · JavaScript Fundamentals · Questena