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);

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. https://codepen.io/nullobject/pen/cngzI.js