showing results for - "how to get a factorial number"
Jonas
30 Nov 2018
1//This is how you can make a factorial out of the number that the user has given
2const factorial = (number) =>{
3	let result = 1
4    for(let i = 1; i<=number;i++){
5    	result = result*i
6    }
7  	return console.log(result)
8  }
9
similar questions
queries leading to this page
how to get a factorial number