Question d’entretien chez ServiceRocket

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