HCLTech interview question

OOPS in Javascript