https://medium.com/@holasoymalva/c%C3%B3mo-calcular-el-factorial-de-un-n%C3%BAmero-en-javascript-568ce726937c