# Javascript makes me a math-guy (factorialize a number)

**URL:** <https://forum.freecodecamp.org/t/javascript-makes-me-a-math-guy-factorialize-a-number/31394>\
**Category:** General\
**Created:** [August 26, 2016, 3:08pm UTC](https://forum.freecodecamp.org/t/javascript-makes-me-a-math-guy-factorialize-a-number/31394 "2016-08-26T15:08:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Markd](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/markd/32/12799_2.png) [@Markd](https://forum.freecodecamp.org/u/Markd)\
**Post date:** [August 26, 2016, 3:08pm UTC](https://forum.freecodecamp.org/t/javascript-makes-me-a-math-guy-factorialize-a-number/31394/1 "2016-08-26T15:08:34Z")

</div>

Just a small message from me to share my frustration. I’m a text-guy and I hardly know any math. So I’m doing this javasciript mission where you have to factorialize a number. Busy for about 2 hours and nothing seems to work. While I should get some high numbers. Sum is 1 times 2 times 3 times 4 times 5 (sum=1_2_3_4_5)

After 1,5 hours I look for help on the net and find out I’ve been using a 0 two times in my script. But 0_1_2_3_4\*5 is still zero 🙂.

Guess some stuff you have to learn the hard way. Of course I know 0 \* 5 is still 0. But I’ll never forget this lesson. And I hope you guys have similar great learnings too.

[off to the next challenge]

---

<div class="post-metadata">

**Author:** ![JoolsMcFly](https://avatars.discourse-cdn.com/v4/letter/j/bbce88/32.png) [@JoolsMcFly](https://forum.freecodecamp.org/u/JoolsMcFly)\
**Post date:** [March 20, 2017, 1:19pm UTC](https://forum.freecodecamp.org/t/javascript-makes-me-a-math-guy-factorialize-a-number/31394/2 "2017-03-20T13:19:31Z")

</div>

What’s important here is that you have learned something. 0 is something to be careful of! You’ll probably find out if/when you do a challenge involving divisions. 🙂

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [January 16, 2021, 1:09pm UTC](https://forum.freecodecamp.org/t/javascript-makes-me-a-math-guy-factorialize-a-number/31394/3 "2021-01-16T13:09:44Z")

</div>

Closed on January 16, 2021, 1:09pm UTC


