"Log it" Problem


#1



https://www.codecademy.com/en/courses/javascript-beginner-en-XEDZA/0/6?curriculum_id=506324b3a7dffd00020bf661#


The error I get is "Did you remember to log the result of your search to the console?"
I'm not sure what I did wrong, please help


/*jshint multistr:true */
var text = "Hi my name is Cullen, how are you doing?";
var myName = "Cullen";
var hits = [];
for(var i = 0; i < text.length; i++){
   if (text[i] === 'C') { 
    for(var j = i; j < i + myName.length; j++) {
hits.push(text[j]);
        }

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


#2

console.log=(hits); // remove =
console.log(hits);
@cullsyslick