You are viewing a single comment's thread. Return to all comments →
javascript
function factorial(n) { // Write your code here let fact = 0; if (n <= 1) { fact = 1 }else{ fact = n * factorial(n - 1) } return fact }
Seems like cookies are disabled on this browser, please enable them to open this website
Day 9: Recursion 3
You are viewing a single comment's thread. Return to all comments →
javascript