結果 : how to use for loop on array of objects in javascript