1. What is Prototype chain ? Mid A. both shallow-copy own enumerable properties; spread {...o} is an expression while Object.assign mutates a target object B. an ES6 class is syntax over JS's prototype-based inheritance, not a separate object model C. the chain of [[Prototype]] links JS walks to resolve a property not found on the object itself D. tests whether a property exists directly on an object rather than being inherited via the prototype chain Reveal the answer + AI explanation — free account
2. Which term means: "the chain of [[Prototype]] links JS walks to resolve a property not found on the object itself"? Mid A. Prototype chain B. Object.create C. Spread vs Object.assign D. Object.freeze Reveal the answer + AI explanation — free account
3. Which statement is correct? Mid A. Prototype chain — an ES6 class is syntax over JS's prototype-based inheritance, not a separate object model B. Prototype chain — both shallow-copy own enumerable properties; spread {...o} is an expression while Object.assign mutates a target object C. Prototype chain — the chain of [[Prototype]] links JS walks to resolve a property not found on the object itself D. Prototype chain — creates a new object with its prototype set to the object you pass in Reveal the answer + AI explanation — free account
4. What is Object.create ? Mid A. an ES6 class is syntax over JS's prototype-based inheritance, not a separate object model B. creates a new object with its prototype set to the object you pass in C. the chain of [[Prototype]] links JS walks to resolve a property not found on the object itself D. tests whether a property exists directly on an object rather than being inherited via the prototype chain Reveal the answer + AI explanation — free account
5. Which term means: "creates a new object with its prototype set to the object you pass in"? Mid A. Object.freeze B. hasOwnProperty C. Object.create D. class is sugar Reveal the answer + AI explanation — free account
6. Which statement is correct? Mid A. Object.create — the chain of [[Prototype]] links JS walks to resolve a property not found on the object itself B. Object.create — tests whether a property exists directly on an object rather than being inherited via the prototype chain C. Object.create — both shallow-copy own enumerable properties; spread {...o} is an expression while Object.assign mutates a target object D. Object.create — creates a new object with its prototype set to the object you pass in Reveal the answer + AI explanation — free account
7. What is hasOwnProperty ? Junior A. creates a new object with its prototype set to the object you pass in B. an ES6 class is syntax over JS's prototype-based inheritance, not a separate object model C. the chain of [[Prototype]] links JS walks to resolve a property not found on the object itself D. tests whether a property exists directly on an object rather than being inherited via the prototype chain Reveal the answer + AI explanation — free account
8. Which term means: "tests whether a property exists directly on an object rather than being inherited via the prototype chain"? Junior A. Spread vs Object.assign B. Object.create C. hasOwnProperty D. class is sugar Reveal the answer + AI explanation — free account
9. Which statement is correct? Junior A. hasOwnProperty — makes an object immutable at the top level — its own properties cannot be added, deleted, or reassigned B. hasOwnProperty — an ES6 class is syntax over JS's prototype-based inheritance, not a separate object model C. hasOwnProperty — tests whether a property exists directly on an object rather than being inherited via the prototype chain D. hasOwnProperty — both shallow-copy own enumerable properties; spread {...o} is an expression while Object.assign mutates a target object Reveal the answer + AI explanation — free account
10. What is class is sugar ? Mid A. makes an object immutable at the top level — its own properties cannot be added, deleted, or reassigned B. the chain of [[Prototype]] links JS walks to resolve a property not found on the object itself C. an ES6 class is syntax over JS's prototype-based inheritance, not a separate object model D. creates a new object with its prototype set to the object you pass in Reveal the answer + AI explanation — free account
11. Which term means: "an ES6 class is syntax over JS's prototype-based inheritance, not a separate object model"? Mid A. Object.freeze B. class is sugar C. Spread vs Object.assign D. hasOwnProperty Reveal the answer + AI explanation — free account
12. Which statement is correct? Mid A. class is sugar — the chain of [[Prototype]] links JS walks to resolve a property not found on the object itself B. class is sugar — creates a new object with its prototype set to the object you pass in C. class is sugar — tests whether a property exists directly on an object rather than being inherited via the prototype chain D. class is sugar — an ES6 class is syntax over JS's prototype-based inheritance, not a separate object model Reveal the answer + AI explanation — free account
13. What is Object.freeze ? Mid A. the chain of [[Prototype]] links JS walks to resolve a property not found on the object itself B. makes an object immutable at the top level — its own properties cannot be added, deleted, or reassigned C. an ES6 class is syntax over JS's prototype-based inheritance, not a separate object model D. tests whether a property exists directly on an object rather than being inherited via the prototype chain Reveal the answer + AI explanation — free account
14. Which term means: "makes an object immutable at the top level — its own properties cannot be added, deleted, or reassigned"? Mid A. Object.freeze B. hasOwnProperty C. Object.create D. class is sugar Reveal the answer + AI explanation — free account
15. Which statement is correct? Mid A. Object.freeze — both shallow-copy own enumerable properties; spread {...o} is an expression while Object.assign mutates a target object B. Object.freeze — creates a new object with its prototype set to the object you pass in C. Object.freeze — makes an object immutable at the top level — its own properties cannot be added, deleted, or reassigned D. Object.freeze — an ES6 class is syntax over JS's prototype-based inheritance, not a separate object model Reveal the answer + AI explanation — free account
16. What is Spread vs Object.assign ? Mid A. creates a new object with its prototype set to the object you pass in B. makes an object immutable at the top level — its own properties cannot be added, deleted, or reassigned C. the chain of [[Prototype]] links JS walks to resolve a property not found on the object itself D. both shallow-copy own enumerable properties; spread {...o} is an expression while Object.assign mutates a target object Reveal the answer + AI explanation — free account
17. Which term means: "both shallow-copy own enumerable properties; spread {...o} is an expression while Object.assign mutates a target object"? Mid A. Spread vs Object.assign B. hasOwnProperty C. class is sugar D. Object.create Reveal the answer + AI explanation — free account
18. Which statement is correct? Mid A. Spread vs Object.assign — an ES6 class is syntax over JS's prototype-based inheritance, not a separate object model B. Spread vs Object.assign — both shallow-copy own enumerable properties; spread {...o} is an expression while Object.assign mutates a target object C. Spread vs Object.assign — makes an object immutable at the top level — its own properties cannot be added, deleted, or reassigned D. Spread vs Object.assign — creates a new object with its prototype set to the object you pass in Reveal the answer + AI explanation — free account