JSFiddle - React, Tailwind, and code Playground

by Slico

JavaScript

/*
function doFactorial(number) {

  let total = 1

  for (let i = number; i > 0; i--) {
    total = total * i
  }

  return total
}
*/



console.log(doFactorial(4))