12/13 Loops and Arrays II


#1

// Click on "Stuck? Get a hint!" if you get stuck!
var names=["Kylie", "Matthew", "Willy", "Jenny"];

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

This was the code I used, the code still won't run. I am severely confused. Help please!
:confused:
Thank you!


#2

It looks like you forgot to contain your string I know someone called in quotation marks. :slightly_smiling: Without the quotes it thinks you're trying to call on a predefined variable.