You are viewing a single comment's thread. Return to all comments →
See a lot of solutions using logic, isn't the simplest (in JS)
function factorial(n) { // Write your code here var f = 1 for (let i = 1; i <= n; i++){ f *= i } return f }
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 →
See a lot of solutions using logic, isn't the simplest (in JS)