12 Loops and arrays II - syntax error


#1

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


#2

Hi this line

var names ["Kim", "Kevin", "Kandi", "Kari", "Keith"];

it's missing the = after names


#3

Thanks! Figured it'd be something silly like that.


#4

For arrays, before the values inside the brackets you will need an equals sign, submitting the value for var. So, var names = [values]
Hope this will help! :slight_smile: