ServiceRocket Interview Question

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