Your second for loop - isn't pushing values into array


I've gone through an matched my existing code with the other answers here and I'm still getting the same error. I've tried switching the < and > comparisons, with no luck.

var text = "yolo yolo yolo yolo nate yolo nate yolo"
var myName = "nate"
var hits = []

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


I guess this is my warm welcome into programming. I had capitalized the "N" in myName and was getting an error about my second for loop. After posting this I changed the myName from "Nate" to "nate" and it worked. Fucking brutal.