console.log('-forEach-');
['Dog', 'Cat', 'Hamster'].forEach(function(element) {
console.log(element);
});
console.log(`\n----------------------------------------------\n`);
console.log('-map-');
['Dog', 'Cat', 'Hamster'].map(function(element) {
console.log(element);
});
This Pen doesn't use any external CSS resources.