Your Second For Loop Help


#1

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>

<In what way does your code behave incorrectly? Include ALL error messages.>

```

/*jshint multistr:true */
var text = “Hey there! My name is Brandin! I’m
enjoying coding so far! :smiley: 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++);
}

<do not remove the three backticks above>

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)