const n = 10, value = 7; const arr = Array(n).fill(value);
const n = 100; // 0 ~ 99 const arr = [...Array(n)].map((v,i) => i); // 1 ~ 100 const arr = [...Array(n)].map((v,i) => i+1);