Factorial using recursion in Javascript
Write a function factorial which accepts a number and returns the factorial of that number. A factorial is the product of an interger and all the integers below it; eg. , factorial four( 4!) is equal to 24, because 4 * 3 * 2 * 1 equals 24. factorial zero (0!) is always 1.
Write a function factorial which accepts a number and returns the factorial of that number. A factorial is the product of an interger and all the integers below it; eg. , factorial four( 4!) is equal to 24, because 4 * 3 * 2 * 1 equals 24. factorial zero (0!) is always 1.