Comment obtenir un numéro factoriel

//This is how you can make a factorial out of the number that the user has given
const factorial = (number) =>{
	let result = 1
    for(let i = 1; i<=number;i++){
    	result = result*i
    }
  	return console.log(result)
  }
LucaEspinozza