Hi, I have a task to do and don't really know where to start. Im very new to javascript. This is the task;
Loop through the array below and console log each type property if the age is at least 4.
var pets = [
{
type: "cat",
age: 5.5,
},
{
type: "dog",
age: 3.8,
},
{
type: "parrot",
age: 4.0,
},
];
Would appreciate any help! 🙂