initialize array with zeros javascript code example Example: javascript initiate array all zero new Array(len).fill(0);