initialise array of zeros by amindunited October 08, 2019 JavaScript const myArray = [...new Array(5)].map(val => 0); console.log('...', myArray);