filmov
tv
Factorial using recursion in Javascript
![preview_player](https://i.ytimg.com/vi/TIZnZNLx06o/maxresdefault.jpg)
Показать описание
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.
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.