javascript create array with null values

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

Source

Also in JavaScript: