Start with the animal object you created in the last exercise.

  1. Create a variable called animals and set it equal to an empty array. Using any method you prefer, add your animal object to the animals array.
  2. Create a variable called quackers and assign it to this object:
    {name: 'Daffy Duck', description: 'a silly duck', noises: ['quack', 'honk', 'sneeze', 'growl'] }
  3. Add quackers to the animals array using a different method than before.
  4. Inspect your animals array to ensure you have two objects inside.
  5. Create two more animal objects and add them to the animals array. They should have these properties and your choice of values: name (string), description (string), and noises (array of strings).
  6. Check the length of your array and make sure it's 4.
  7. Now iterate over your array to output a list of the animals' names.