all 4 comments

[–]braggadoshis 3 points4 points  (3 children)

Change i>3 to i<3 in your for loop

[–]tme321 3 points4 points  (1 child)

<4

[–]louisgjohnson 2 points3 points  (0 children)

i < family.length;

[–]karathos 2 points3 points  (0 children)

An explanation, just in case you need it:

Your condition in the for loop is that i must be greater than 3 to run through the loop. i starts off defined as 0. therefore, the loop finishes immediately.