Factorial

Run Settings
LanguageJavaScript
Language Version
Run Command
function factorial(n){ if(n==0 || n==1){ return 1 } else{ return n* factorial(n-1) } } const getFactorial= factorial(12); console.log('factorial is ---' ,getFactorial);
Editor Settings
Theme
Key bindings
Full width
Lines