JSFiddle - React, Tailwind, and code Playground

by Leoooo

JavaScript

function fac(n)
{
if(n==1)return 1;
else return n*fac(n-1);
}

console.log(fac(5));