Bridgenext Interview Question

How does inheritance work in javascript?