Can someone please help me


#1

var text = "test ,test ,test ,joe ,test ,joe , test , test , test";

var myName = "joe";
var hits = []

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


#2

Asking if you can have help doesn't get much. Try asking for the thing you want help with instead!
Explain what's happening and what you want to happen instead, what do you need help with?


#3

First try spacing your code out more, its easier to read that way.

I think the code is all there you just missed out a load of you curly brackets {}. I copied and pasted your code in below and added some curly brackets, take a look to see where you missed them out.

for (var i = 0; i < text.length; i ++); {

  if (text[i] === 'j') {

         for (var j = i; j < myName.length) {  
              // later add code here
         }
  }

}


#4

it works but codecademy says this Oops, try again. Careful: your second 'for' loop should stop when it reaches its current point in the string + myName.length.