If you wish to initialize an array with a single element, ... than array.length: const c = [1, 2]; c[4] = 5; // [ 1, 2, <2 empty items>, ...
確定! 回上一頁