I trying to make a small text based rpg game, but I came across array in js and then I came to problems, I failing to increase the index number by using i instead of 0 like `myArray[i]`

I made a jsfiddle so you guys can see what I mean.

[jsfiddle](https://jsfiddle.net/4y3293r0/)

When you press the button til you get a warming, it should increase the i to 2, but it don't, but still comes with warming and increasing the attack variable.