Take a look at this code:
var people= ["jonh", "david", "brian", "paul", "martin", "scot", "steven", "george"];
var jonh= ["18", "male"];
var david = ["51", "male"];
var brian = ["13", "male"];
var paul = ["45", "male"];
var martin = ["10", "male"];
var scot = ["13", "male"];
var steven = ["15", "male"];
var george = ["20", "male"];
for (i = 0; i < people.length; i++) {
var yearsOld= ???;
document.write(yearsOld + '<br>');
}
What do I need to put at ??? to get a list of the people´s age?
I tried something like (people[i])[0]
but of course that wouldn´t work!
Help?