title: Why doesn't this .push work? (javascript)
body: <pre><code>var text = "some text jjke kjerk jker helmi kjekjr helmi ekjrkje helmi";
  var myName = "helmi";
  var hits = [];
  
  for (var i = 0; i &lt; text.length; i++) {
      if (text[i] === 'h') {
      for (var j = i; j &lt; text[i] + myName.length; j+=1) {
          }
      hits.push('text[j]');
          }
      };
  
  if (hits.length === 0) {
      console.log("Your name wasn't found!");
  }
  else {
      console.log(hits);
  }
  </code></pre>
  
  <p>I want it to find "myName" in the "text", and push it. But it only pushes whatever I put in the parenthesis after hits.push. What is wrong with this code? </p>