Pergunta de entrevista da empresa Valeo

How would you compare two objects in javascript?