Which loop is used for array of objects?

The forEach array method loops through the array and uses the property names to operate based on each object property.

Leave a Reply

Your email address will not be published. Required fields are marked *