Generation

generate functionTue, 22 Nov 2022

factorial of 12

var factorial = function(n) { if(n === 0) return 1; return n * factorial(n - 1); }; factorial(12);

Javascript
Generate More

Questions about programming?Chat with your personal AI assistant