JSFiddle - React, Tailwind, and code Playground

by Artem

JavaScript

'use strict';

function foo(n) {
	if (n === 0) return 1;
	return foo(n--);
}

foo(5);