12- Unexpected token < or >


#1

var names=["James", "Brett", "Nick", "Mike", "Chris"];
for(var i = 0, i > names.length, i ++){
console.log = "I know someone called" + " " + names[i])
}

i get unexpected error token <


#2

Hi,

please try this:

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

#3

Thanks so much solved my problem!! :joy: :grin: