Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

factorial bigger than 170 javascript

var factorial = function(n){n=BigInt(n);return (n==0n||n==1n)?1n:factorial(n-1n)*n;}
//can be print this way
console.log( factorial(n) );
 
PREVIOUS NEXT
Tagged: #factorial #bigger #javascript
ADD COMMENT
Topic
Name
6+2 =