Pergunta de entrevista da empresa Amazon

How is inheritance implemented in JavaScript?