SaaS Markets interview question

How does inheritance work in object-oriented Javascript?