12 Help needed



my code looks like this:

var names ["Irmi", "Willi", "Volkmar", "Christopher", "Nadine"];

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

Still i get this error "SyntaxError: missing before statement" and can't figure out my mistake.

Thank you in advance!


You forgot to use the so-called assignment-operator

var names = ["Irmi", "Willi", "Volkmar", "Christopher", "Nadine"];


Thank you very much, this helped!