JSFiddle - React, Tailwind, and code Playground

by Ivan Mishchenko

JavaScript

function Factorial( x){
if(x==0) return 1;
    return x*Factorial(x-1);
}

alert(Factorial(5));