Your second "for" loop


#1

var text='Hey, how are you doing? My name is Elena.';
var myName = 'Elena';
var hits = [];
for (var i = 0; i < text.length; i++) {
if(text[i]==='E') {
console.log(myName);

var text= 'Hey, whats up? My name is John.';
var myName = 'John';
var hits [];
for(var i = 0; i < text.length; i++) {
if(text[i]==='J'
console.log(myName);
}
}
}
The code says theres a problem with the syntax. i have no idea what to do


#2

Best to start over. Study the lesson text and instructions closely, and review lesson one example for comparison.