結果 : javascript loop through array and return string