Pregunta de entrevista de Gettick

How does inheritance work in JS?