Pregunta de entrevista de SAP

How does inheritance works in javascript