Pergunta de entrevista da empresa General Assembly

How does inheritance work in JS objects?