Pregunta de entrevista de ServiceRocket

How does prototypal inheritance work in JavaScript, and provide an example.