create an array of zeros in javascript code example Example: javascript initiate array all zero new Array(len).fill(0);