const pets = ['Dog', 'Cat', 'Hamster', ];
console.log('Before: pets');
console.log(pets);
const newPets = pets.map(function(element){
return element.toUpperCase();
});
console.log('\nnewPets');
console.log(newPets);
console.log('\nAfter: pets');
console.log(pets);
This Pen doesn't use any external CSS resources.