How does prototypal inheritance work in JavaScript?
~4 min by voice
How to approach it
The interviewer checks whether the candidate understands the mechanism under the hood: the [[Prototype]] reference, property lookup along the chain, and the relationship between a constructor, prototype and new, not just the class/extends syntax.
The interviewer will ask this question and listen. Think out loud and ask for a hint if you need one. When you're done, pause or tap “That's my answer”. In about a minute, your score and the points you covered show up here.