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

Which description of for...in over an ordinary object is accurate when no mutation occurs during enumeration?

  1. It yields only the object's own Symbol values
  2. It yields enumerable string keys and can include inherited onesՃիշտ պատասխան
  3. It yields property values but never keys
  4. It works only when the object is iterable

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

For...in yields enumerable string property keys and may include eligible properties inherited through the prototype chain. It does not directly yield property values, so describing it as the object equivalent of array value iteration is incorrect.

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

Սկսել վարժանքը
Հարց 102: Which description of for...in over an ordinary object is… · JavaScript Fundamentals · Questena