EPAM Systems interview question

javascript inheritance and example asked for