結果 : how to loop through properties of an object javascript