Pregunta de entrevista de Amazon

How is inheritance implemented in JavaScript?