結果 : how to set max length of array in javascript