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

item has one own enumerable string-keyed property named visible, one own Symbol-keyed property, and an inherited property. What does Object.keys(item) include?

  1. Only the string visibleՃիշտ պատասխան
  2. The visible key and the inherited key
  3. The visible key and the Symbol key
  4. All own and inherited keys

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

Object.keys collects own enumerable keys whose key type is string, so visible is included. The inherited name and the Symbol key are excluded, which makes a list containing all three categories too broad.

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

Սկսել վարժանքը
Հարց 69: item has one own enumerable string-keyed property named… · JavaScript Fundamentals · Questena