Trying to avoid pushing similar names into hits array


Hi guys, my code is here: JsFiddle

Am I doing something wrong? It's always going to that even if the first is Alex and not Adam


@webwhiz18739 i updated your fiddle check if you can see it HERE


Wasthat what you were looking for? Did you understand it?


Hi I'm not at home right now but I'll take a look in a few hours thanks. Have a happy new year


Hi Sorry for the late reply.

I want him to say Adam is not my name if Adam appears instead of Alex.


all you have to do is add print statements to this part of your code

        if(found === myName){
            console.log("'%s' was a hit pushing to hits array",found);
            console.log("'%s' was a not hit",found);