結果 : create an array of length n in javascript