alforoan – 00-44 Oct 27

i need help with why my game.j index is increasing to 1 and how i can set it to 0 on start of every new word
A
Alforoan175d ago
https://jsfiddle.net/5yjpubs8/ problem: if the word i have to type is "dispose " (last letter is an empty string) and i type something like "ffffffff" (last letter is an f instead of an empty string) game.j index becomes 1 if i type the start of the next word even though it should start at index of 0
Edit fiddle - JSFiddle - Code Playground
Test your JavaScript, CSS, HTML or CoffeeScript online with JSFiddle code editor.
A
Alforoan175d ago
No description
A
Alforoan175d ago
so if i typed "ddddd" for 'pull' and typed "d' after, p in pendant shoudl be marked wrong but it goes str8 to e no worries
UU
Unknown User173d ago