function factorial(n) { // Base case if (n === 0 || n === 1) return 1; // Recursive case return n * factorial(n — 1); }