Skip to content

Instantly share code, notes, and snippets.

@biagidp
Last active February 17, 2021 12:50
Show Gist options
  • Save biagidp/b379fa628a6829d0daaed3a20aeac47c to your computer and use it in GitHub Desktop.
Save biagidp/b379fa628a6829d0daaed3a20aeac47c to your computer and use it in GitHub Desktop.
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