I dont get the 2nd for loop part. I think this a simpler solution


#1


var text = "bla bla bla bla bla Olin bla bla bla bla bla";
var myName = "Olin";
var nameLetterNum = 0
var hits = [];

for (ti = 0; ti < text.length; ti++) {
    if (text[ti] === myName[nameLetterNum]) {
        hits.push(myName[nameLetterNum]);
        nameLetterNum += 1;
    }
}

console.log(hits);


#2

Nevermind got it. This one would just find my name even if its written like this: bo bl bi bn


#3