Pergunta de entrevista da empresa Gettick

How does inheritance work in JS?