Loop the loop



i get the error:Oops, try again. It looks like you have an error in your code. Here's the message: TypeError: family[i] is undefined


your loop condition:


using <= means values lesser or equal to the length of family. Which is 4, but the highest index of your array is 3. So, attempting to access the array with index 4 is a bit problematic.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.