javascript for() loop, split(), and array question - Stack Overflow
Your understanding is essentially correct. One thing you should do is declare all your variables: this is particularly important inside functions. So, you should declare i as a variable, either before the loop: var i; for (i = 0; i < mySplitResult.length;...