Pergunta de entrevista da empresa Mobiquity

How does inheritance work in JavaScript?