alert([1,2,3,4,5,6,7,8,9,10].map(el=>el/5|0));
function getFactZeros(x){ var z = 0; while(x){ x = (x/5)|0; z+=x; } return z; }