結果 : how to loop through an array of objects in javascript