Your Second For Loop Help


#1



/*jshint multistr:true */
var text = "Hey there! My name is Brandin! I'm \
enjoying coding so far! :D I can't wait \
to learn how to code my name; Brandin!";
var myName = "Brandin";
var hits = [];

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

So I'm just a tad confused as to what to actually do with this. Can someone help?


#2

Did you read some of the other topics in which attempts where made to explain it? For example this one or this one?

Writing details answered on his this works is rather time consuming (i made a belt out of watches, it was a waist of time)