12/15


#1

Hi can anyone please tell me what is wrong with my code? thank you
var names = ["Ali", "Naaman", "Mike", "Clint", "Adrina"];

for (var i = 0; i < nameLength; i ++) {
console.log("I know some called" + name[i]);
}


#2

I think you should type names.length instead of namelength


#3

yh i changed it to this but still wont work

var names = ["Ali", "Naaman", "Mike", "Clint", "Adrian"];

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


#4

names.length not name.length


#5

yh ive got it to work now thanks though