Learning JavaScript? Download my free JavaScript Handbook 🔥

Simple solution:

Array(12).fill(0)

fill() is a new method introduced in ES6.