exercise involving iterating through an array of objects with a forEach loop in js