JavaScript membuat array dengan nilai nol

const arr = new Array(5).fill(null);
Coder Cuttlefish