Loading [MathJax]/jax/output/HTML-CSS/fonts/TeX/fontdata.js

ES-1 Factorial Number

Create a function that accepts one number as an argument and returns it's factorial. The function should have a default argument of 10 if no argument is passed for some reason.

ex. factorial(5) // Returns 120

ex. factorial(6) // Returns 720

ex. factorial() // Returns 3628800

Factorial Default

Kostas Diakogiannis
Module by Kostas Diakogiannis, updated more than 1 year ago
No tags specified