factorial()

in code


Recursive factorial in one line.

function factorial(number) {
    return number < 2 ? 1 : number * factorial(number - 1);
}


March 20

in me


Your email address will not be published. Required fields are marked *