What wrong here. I simply cant understand;


#1

var myPlaces=['Norway','Iceland','Antartica'];
var friendPlaces=['test1','test2','test3'];
for(var i=0;i<myPlaces.length;i++){
console.log(myPlaces[i]);
for(var j=0;j<friendPlaces.length;j++){
if(myPlaces[i] === friendplaces[j]){
console.log('Match'+ myPlaces[i]);
}
else
{
console.log('dont match');
}
}
}


#2

should be:

if(myPlaces[i] === friendPlaces[j])