🏠 Go back to the homepage How to initialize a new array with values in JavaScript Find out how you can initialize a new array with a set of values in JavaScript Published Oct 02 2018, Last Updated Jan 21 2019 Simple solution: Array(12).fill(0) fill() is a new method introduced in ES6. Download my free JavaScript Beginner's Handbook!