Questenaتمرینی که نشان می‌دهد بعد چه چیزی را مرور کنید
سؤال 70

Classify the statements about Object.values and Object.entries. Which are true? Select all that apply.

  1. Object.values includes values inherited from a prototype
  2. Object.entries produces key-value pairs for own enumerable string-keyed propertiesپاسخ درست
  3. Both methods include properties keyed by Symbols
  4. Object.values produces the values of own enumerable string-keyed propertiesپاسخ درست

توضیح

Both methods operate on the object's own enumerable string-keyed properties. Object.values collects their values, while Object.entries represents each corresponding string key and value together; inherited and Symbol-keyed data are not included.

ادامهٔ این آزمون

شروع تمرین
سؤال 70: Classify the statements about Object.values and… · JavaScript Fundamentals · Questena