Buat array ukuran n di javascript
// creates an empty array of size 10
Array(10);
// creates an array of empty objects
Array(10).fill({});
nj-coder
// creates an empty array of size 10
Array(10);
// creates an array of empty objects
Array(10).fill({});
Array.from(Array(10).keys())
//=> [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
const ar=[];