結果 : how to repeat code in javascript