HCLTech interview question

Inheritance in Javascript