initializing all elements of an array to zero javascript code example Example: javascript initiate array all zero new Array(len).fill(0);