12. Loops and arrays II


#1


https://www.codecademy.com/pt/courses/javascript-beginner-en-NhsaT/2/4?curriculum_id=506324b3a7dffd00020bf661#

I'm getting this error: SyntaxError: missing ) after argument list

var names = ["Liz", "Lola", "Liv", "Lindsay", "Lisa"]

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


#2

HI this line

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

you should add + like that

"...." + " " + names[i]);

#3

if you want to join a string and a variable together (or strings together), you need a plus sign:

test = "string";
console.log("lets join this " + test);

see the + i use to join the string together?