Question: JAVASCRIPT ________________________________________________________________ Suppose we have the following array: let cats = [ { name: Ginger, age: 2 }, { name: Winter, age: 4 }, {

JAVASCRIPT

________________________________________________________________

Suppose we have the following array:

let cats = [

{ name: Ginger, age: 2 },

{ name: Winter, age: 4 },

{ name: Garry, age: 1 } };

console.log(cats);

For this exercise, use a for... of loop and object.notation and print the ages.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!