Pregunta de entrevista de SaaS Markets

How does inheritance work in object-oriented Javascript?