Please help me out


var names = ["alessia", "taylor", "jay", "leah", "cara"];

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


the condition of your for loop:

i < names

this should be a number, names is an array, maybe use the length of the array instead? (names.length)


@cssjumper21670, in your for loop you try compare number and object. So, @stetim94 is wright. Array is an Object, so it has properties and methods. You can find more info here: JavaScript Array Reference.


ohh thank you soo much @stetim94


thank you @denys.matsevych.30