You are viewing a single comment's thread. Return to all comments →
my ans using J.S
function factorial(n){
let int=n; let i; for(i=1;i<n;i++){ int=int*(n-i) }; return int
}
Seems like cookies are disabled on this browser, please enable them to open this website
Day 1: Functions
You are viewing a single comment's thread. Return to all comments →
my ans using J.S
function factorial(n){
}