const petsLists = [
{ name: 'Dog', age: '4' },
{ name: 'Cat', age: '6' },
{ name: 'Finches', age: '8' },
{ name: 'Hamster', age: '1' },
{ name: 'Squirrel', age: '2' },
{ name: 'Betta Fish', age: '0.5' },
];
petsLists.forEach( function(element) {
console.log( element.name );
});
This Pen doesn't use any external CSS resources.