JSFiddle - React, Tailwind, and code Playground

by vinodlouis

JavaScript

function FirstFactorial(num) { 

  // code goes here  
  if(num > 1)
  	return num * FirstFactorial(num-1); 
  else 
  	return 1;
         
}
   
// keep this function call here 
alert(FirstFactorial(4));