Factorialize a Number - Portuguese (#34580)

* Factorialize a Number - Portuguese

Solution added to .md

* Add invocation to solution
pull/36125/head
Matheus Genteluci 2019-05-24 23:58:30 -03:00 committed by Randell Dawson
parent 46df633b74
commit 907b93eaea
1 changed files with 5 additions and 1 deletions

View File

@ -58,6 +58,10 @@ factorialize(5);
<section id='solution'>
```js
// solution required
function factorialize(num) {
return num <= 1 ? 1 : num * factorialize(num - 1);
}
factorialize(5);
```
</section>