Prototypes & Objects interview questions

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.

Practice Prototypes & Objects free

1. What is Prototype chain?

Mid
  1. A.both shallow-copy own enumerable properties; spread {...o} is an expression while Object.assign mutates a target object
  2. B.an ES6 class is syntax over JS's prototype-based inheritance, not a separate object model
  3. C.the chain of [[Prototype]] links JS walks to resolve a property not found on the object itself
  4. 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
  1. A.Prototype chain
  2. B.Object.create
  3. C.Spread vs Object.assign
  4. D.Object.freeze

Answer + AI explanation with a free account

3. Which statement is correct?

Mid
  1. A.Prototype chain — an ES6 class is syntax over JS's prototype-based inheritance, not a separate object model
  2. B.Prototype chain — both shallow-copy own enumerable properties; spread {...o} is an expression while Object.assign mutates a target object
  3. C.Prototype chain — the chain of [[Prototype]] links JS walks to resolve a property not found on the object itself
  4. 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
  1. A.an ES6 class is syntax over JS's prototype-based inheritance, not a separate object model
  2. B.creates a new object with its prototype set to the object you pass in
  3. C.the chain of [[Prototype]] links JS walks to resolve a property not found on the object itself
  4. 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
  1. A.Object.freeze
  2. B.hasOwnProperty
  3. C.Object.create
  4. D.class is sugar

Answer + AI explanation with a free account

6. Which statement is correct?

Mid
  1. A.Object.create — the chain of [[Prototype]] links JS walks to resolve a property not found on the object itself
  2. B.Object.create — tests whether a property exists directly on an object rather than being inherited via the prototype chain
  3. C.Object.create — both shallow-copy own enumerable properties; spread {...o} is an expression while Object.assign mutates a target object
  4. 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
  1. A.creates a new object with its prototype set to the object you pass in
  2. B.an ES6 class is syntax over JS's prototype-based inheritance, not a separate object model
  3. C.the chain of [[Prototype]] links JS walks to resolve a property not found on the object itself
  4. 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
  1. A.Spread vs Object.assign
  2. B.Object.create
  3. C.hasOwnProperty
  4. D.class is sugar

Answer + AI explanation with a free account

9. Which statement is correct?

Junior
  1. A.hasOwnProperty — makes an object immutable at the top level — its own properties cannot be added, deleted, or reassigned
  2. B.hasOwnProperty — an ES6 class is syntax over JS's prototype-based inheritance, not a separate object model
  3. C.hasOwnProperty — tests whether a property exists directly on an object rather than being inherited via the prototype chain
  4. 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
  1. A.makes an object immutable at the top level — its own properties cannot be added, deleted, or reassigned
  2. B.the chain of [[Prototype]] links JS walks to resolve a property not found on the object itself
  3. C.an ES6 class is syntax over JS's prototype-based inheritance, not a separate object model
  4. 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
  1. A.Object.freeze
  2. B.class is sugar
  3. C.Spread vs Object.assign
  4. D.hasOwnProperty

Answer + AI explanation with a free account

12. Which statement is correct?

Mid
  1. A.class is sugar — the chain of [[Prototype]] links JS walks to resolve a property not found on the object itself
  2. B.class is sugar — creates a new object with its prototype set to the object you pass in
  3. C.class is sugar — tests whether a property exists directly on an object rather than being inherited via the prototype chain
  4. 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
  1. A.the chain of [[Prototype]] links JS walks to resolve a property not found on the object itself
  2. B.makes an object immutable at the top level — its own properties cannot be added, deleted, or reassigned
  3. C.an ES6 class is syntax over JS's prototype-based inheritance, not a separate object model
  4. 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
  1. A.Object.freeze
  2. B.hasOwnProperty
  3. C.Object.create
  4. D.class is sugar

Answer + AI explanation with a free account

15. Which statement is correct?

Mid
  1. A.Object.freeze — both shallow-copy own enumerable properties; spread {...o} is an expression while Object.assign mutates a target object
  2. B.Object.freeze — creates a new object with its prototype set to the object you pass in
  3. C.Object.freeze — makes an object immutable at the top level — its own properties cannot be added, deleted, or reassigned
  4. 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
  1. A.creates a new object with its prototype set to the object you pass in
  2. B.makes an object immutable at the top level — its own properties cannot be added, deleted, or reassigned
  3. C.the chain of [[Prototype]] links JS walks to resolve a property not found on the object itself
  4. 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
  1. A.Spread vs Object.assign
  2. B.hasOwnProperty
  3. C.class is sugar
  4. D.Object.create

Answer + AI explanation with a free account

18. Which statement is correct?

Mid
  1. A.Spread vs Object.assign — an ES6 class is syntax over JS's prototype-based inheritance, not a separate object model
  2. B.Spread vs Object.assign — both shallow-copy own enumerable properties; spread {...o} is an expression while Object.assign mutates a target object
  3. C.Spread vs Object.assign — makes an object immutable at the top level — its own properties cannot be added, deleted, or reassigned
  4. 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.

Practice Prototypes & Objects free
24,000+ questions & coding problemsSoftware & IT16,274 questionsGovernment jobs26 examsAptitudenew questions every timeAI practice interviewwith feedback65 topics to practiseMechanical1,149 questionsGATE ME9 papersEngineering Mathematics381 questions2-minute checkfreeDSA Problems1,422Civil1,005 questionsGATE CE9 papersCS Fundamentals1,209 questionsYour scores6 skillsSystem Design25Electrical / EEE1,047 questionsGATE EE9 papersRun your codeC++ · Java · PythonLow-Level Design144Electronics & Comm.975 questionsGATE EC9 papersAI help on every questionFull-Stack6,282Chemical1,005 questionsGATE CH9 papersAI whiteboardsystem designWork abroadEurope · remote · transfersESE ME1 paperGATE practice papers2019–2026ESE CE1 paperDate alertsbefore the last dateESE EE1 paperBehavioural courseHR round practiceESE ET1 paperResume optimizerProSSC JE ME1 paperApplication trackerSSC JE CE1 paperCompany-wise prepSSC JE EE1 paperRole roadmapsRRB JE1 subjectPriced in ₹UPI · cardsISRO SC1 paperGATE CS9 papersIBPS SO IT1 paperUGC NET CS1 paperSSC CGL26 papersIBPS PO26 papersRRB NTPC26 papersSSC CHSL26 papersIBPS Clerk26 papersSBI Clerk26 papersRRB Group D26 papersSSC CPO26 papersSSC GD26 papers