EPAM Systems Interview Question

javascript inheritance and example asked for