Log it!


#1

Can someone tell me whats wrong here?? Thank you so much...

/*jshint multistr:true */

var text = "Hey, I'm Ernesto.\ when I was a kid everyone called me Ernesto boy.\ Now everyone call me just Ernesto.";

var myName = "Ernesto";

var hits = [];

for (var i = 0; i < text.length; i++){
if (text[i] === "E"){

    for (var E = i; E < (myName.length + i); E++){
        hits.push(text[E])
    }
}

}

if(/*hits.length is 0*/){
console.log("Your name wasn't found!");
} else {
console.log(hits);
}

SyntaxError: Unexpected token )


#2

the error is here you need a condition not a comment