Loop the loop


#1

Hello,

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


#2

your loop condition:

i<=family.length

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.


#3

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