title: SyntaxError: Unexpected Identifier for loop through an array
body: <p>Writing a loop and array that searches text for a word and it comes up with this syntax error I've been looking over the code but can't seem to notice any errors.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>jshint multistr:true 
  
  var text = "Usually, solar companies install\
  solar panels on roofs but Elon Musk offers an\
  entirely different and ingenious approach";
  
  var myName = "Elon";
  
  var hits = [];
  
  for(var i=0; i &lt;= text.length; i++) {
     if(text[i] === 'E') {
         for(var j = i; j &lt; (myName.length + i); j++) {
             hits.push(text[j]);
         }
     }
  }
  
  if (hits.length === [0]) {
   console.log("Your name wasn't found!");
  } else {
   console.log(hits);
  }</code></pre>
  </div>
  </div>
  </p>