You are viewing a single comment's thread. Return to all comments →
function factorial(x){ let factorial=1; while(x){ factorial*=x x--; } return factorial; }
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 →
function factorial(x){ let factorial=1; while(x){ factorial*=x x--; } return factorial; }