• + 0 comments
    function extraLongFactorials(n) {
        let res = 1n; 
        
        for(let i = 1; i <= n; i++) {
            res *= BigInt(i); 
        }
        
        console.log(String(res)); 
    }