You are viewing a single comment's thread. Return to all comments →
My JS solution using BigInt() method
function extraLongFactorials(n) { // Write your code here let fact = BigInt(1); for(let i = 1; i <= n; i++){ fact = fact * BigInt(i); } console.log(fact.toString()); }
Extra Long Factorials
You are viewing a single comment's thread. Return to all comments →
My JS solution using BigInt() method