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