結果 : loop through an array of strings javascript