Bug found


#1

code for completing the class(correct)

If you push i the learning program wil not give you an error

/*jshint multistr:true */
var text = " hey how are you doing Daniel? My name is Daniel."
var myName = "Daniel"
var hits = [];

for( var i =0; i < text.length; i++){
    if(text[i] === "D"){
       for(var j =i; j< myName.length +i; j++){
      **  hits.push(text[j])**
           
        } 
    }
}

if (hits=== 0){
console.log("your name wasn't found!")
}else{
console.log(hits)
}

#2

Please give the exercise link. Thank you! :smile:
Please format your post as I have done (select entire code block; press Ctrl+Shift+C) from next time. Thanks! :smile: