Pergunta de entrevista da empresa Aventude

How to create a shallow and deep copy of a object in javascript