OneCompiler

find factorial using recursion in js

1651

Example heading with h2 size

Example heading with h3 size

Following is sample java code.

function facRec(n){
    if(n==0){
        return 1
    }
    return n*facRec(n-1)
}
console.log(facRec(5))