**Tell us what’s happening:**

Hi. I`ve solved the proplem but I have no idea the logic behind it. Can somebody please explain to me how the code (myNum = myNum *i) gives me the answer when Mynum is equal to 1.

Thank you.

**Your code so far**

```
function factorialize(num) {
var myNum = 1;
for(i = 1; i <= num; i++){
myNum = myNum * i;
}
return myNum;
}
factorialize(5);
```

**Your browser information:**

Your Browser User Agent is: `Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.90 Safari/537.36`

.

**Link to the challenge:**