GoConqr has a new look! Let us know what you think.

Module 4 of 10 · Media

Factorial Default

Kostas Diakogiannis

Factorial Default

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

Instructions

You must submit an attempt for this quiz to progress. You can submit it after the last question.

Go to the chosen module

Feedback

What is it about?

What do you think of the new look?

How do you like it?