Pergunta de entrevista da empresa CAST

Explain how inheritance work in JS?