Throughout learning Javascript, I've read terminologies like Shallow Copy and Deep Copy , and the following question came up:
What is the real difference between Shallow Copy and Deep Copy ?
const moderador = {
nombre : "Gbianchi",
lenguajesFavoritos : ["JavaScript", "Java","PHP"],
esDesarrollador : true,
fechaNacimiento : "2010/01/01"
}
const persona = Object.assign({}, moderador);
persona.nombre = "PabloLozano"
persona.esDesarrollador = false;
persona.lenguajesFavoritos.push("PHP7");
console.info("moderador", moderador );
console.info("persona", persona)