const animals = ['cat', 'dog', 'bird'];
console.log(animals); 

animals[0] = 'human';
console.log(animals); 


// const animals = ['cat', 'dog', 'bird'];
// animals = ['human', 'dog', 'bird'];


// const animals = ['cat', 'dog', 'bird'];
// animals.push('monkey');
// console.log(animals);

// const animals = ['cat', 'dog', 'bird'];
// animals.unshift('monkey');
// console.log(animals);

// const animals = ['cat', 'dog', 'bird'];
// animals.splice(0, 1);
// console.log(animals);

// const animals = ['cat', 'dog', 'bird'];
// const newAnimals = animals.slice(0, 1);
// console.log(animals); 
// console.log(newAnimals);