I came here to understand why I was getting the JS "array is undefined" error, but wasn't entirely satisfied, as I think my error is obviously specific to my code.
However, this article is helpful, provided a few clarifications are made, IMO:
You use the word "till" when you actually mean "while".
Your post: "In the same way, for loop execute the script and return you true WHILE the variable i is less than array length", but then will break when the variable i is EQUAL TO or greater than the length of the array. This distinction is very important for understanding lops in the context of getting a undefined array error.
A few clarifications...PFShenanigans July 1, 2011 at 7:19 PM
I came here to understand why I was getting the JS "array is undefined" error, but wasn't entirely satisfied, as I think my error is obviously specific to my code. However, this article is helpful, provided a few clarifications are made, IMO: You use the word "till" when you actually mean "while". Your post: "In the same way, for loop execute the script and return you true WHILE the variable i is less than array length", but then will break when the variable i is EQUAL TO or greater than the length of the array. This distinction is very important for understanding lops in the context of getting a undefined array error.
Post your Comment