18 Prototypes & Objects questions from the JavaScript bank, written for Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd.
Sign up free to see every answer with its explanation and ask the AI tutor.
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
Answer + AI explanation with a 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
Answer + AI explanation with a 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
Answer + AI explanation with a 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
Answer + AI explanation with a 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
Answer + AI explanation with a 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
Answer + AI explanation with a 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
Answer + AI explanation with a 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
Answer + AI explanation with a 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
Answer + AI explanation with a 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
Answer + AI explanation with a 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
Answer + AI explanation with a 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
Answer + AI explanation with a 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
Answer + AI explanation with a 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
Answer + AI explanation with a 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
Answer + AI explanation with a 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
Answer + AI explanation with a 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
Answer + AI explanation with a 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
Answer + AI explanation with a free account
Free to start
Answers, AI explanations, and a free readiness check
Sign up free to check your answers with explanations, ask the AI tutor anything on any question, and take the free 2-minute readiness check for a scored result. One full AI mock interview, scored like a real panel, is free when you sign up.