how to make all elements to zero in javascript array code example Example: javascript initiate array all zero new Array(len).fill(0);