As far as i can see it is right help?


#1

var names = ["Stuart","Chris","Derek","Hammond","James"];

for (var i = 0; i > names.length; i ++);
{
console.log("I know someone called "+names[i]);
}


#2

you want the loop condition to be i< names.length and the semicolon after the statement

for (var i = 0; i > names.length; i ++)

should not be there

So then your code should be

var names = ["Stuart","Chris","Derek","Hammond","James"];

for (var i = 0; i < names.length; i ++) {
    console.log("I know someone called "+names[i]);
}

#3

Also no semicolon after the for loop otherwise it will confuse the semicolon with the function body. Meaning it will not loop over the stuff in {} but just do nothing while counting up, as the semicolon means /*do nothign -> statement-end-sign*/;