Innofied Solution interview question

inheritance in JavaScript