Error


#1



LOG IT!


syntax error: unexpected identifier


Replace this line with your code. 
var text = "Ello, have a seat Quantum\
Technologys! My name is Fred.";

var myName = "Fred";

var hits = []

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

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

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


#2

(just noticed that I missed the " in the, Your name wasn't found, and the missing 'is' in, hits.length. (It still doesn't work.)


#3

if(hits.length === 0)instead ofif(hits.length 0)`


#4

It works now, thanks.