Names not defined


#1

it comes up with typeError names not defined

var names= ["jeff","bob","steve","logan","john"];

for ( var i = 0; i < names.length; i ++)
{
console.log ("i know " + names (i))
}


#2

Array index is given by [square_bracket] or, subscript notation.

console.log("I know someone called " + names[i]);

just as an example.