27. Loop the loop [SOLVED]


#1
var family = [];
for (i = 0; i < 3; i++) {
    console.log(family[i]);
};

what is wrong with my code? "family[i], is undefined.


#2

Maybe because there are no values assigned to the array family.


#3

Nevermind, i created the array "Family" twice. Thanks anyways