Why does the following code snippet below have such a result? variables of type CONST could not have their value changed right?
const theDog = {
name: 'Totó',
guardian: { name: 'Alan Turing' }
}
const otherDog = { ...theDog, name: 'Tulipa' }
otherDog.guardian.name = 'Maria Luiza'
theDog? { name: 'Totó', guardian: { name: 'Maria Luiza' } }