ServiceRocket interview question

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