Zeros à direita no Fatorial JS

function zeros (n) {
  let cont = 0;
  while(n > 0){
    n = Math.floor(n/5);
    cont += n
  }
  return cont;
}
Wide-eyed Wolf