Last active
February 17, 2021 12:50
-
-
Save biagidp/b379fa628a6829d0daaed3a20aeac47c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const catBreeds = [ 'tabby', 'maine coon', 'calico', 'siamese' ] | |
const dogBreeds = [ 'corgi', 'doberman', 'pit bull', 'black lab' ] | |
const animals = [ | |
{ | |
name: 'duke', | |
breed: 'corgi', | |
age: 1, | |
weight: 22, | |
chipId: '55cdac0e-2029-4764-85bd-f2378f87c4cf' | |
}, | |
{ | |
name: 'merlin', | |
breed: 'maine coon', | |
age: 12, | |
weight: 17, | |
chipId: '55cdac0e-2029-4764-85bd-f2378f87c4c8' | |
} | |
] | |
const greetAnimals = (animalArray) => { | |
} | |
// Expected output of greetAnimals(animals) | |
// > Woof, my name is duke | |
// > Meow, my name is merlin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment