title: a for() loop to compare 2 arrays, and then change another array. JavaScript only
body: <p>I hope someone can help me with this.</p>
  
  <p>I have 2 equal length arrays, and I want to compare them, string by string.
  if <code>array[3]</code> equals <code>otherArray[3]</code>, I want to change the value of yet <code>anotherArray[3]</code></p>
  
  <p>I tried to do this with this code, but for some reason it doesnt change the 3th array, and my console doesnt give any errors.</p>
  
  <p><strong>Here is the code:</strong></p>
  
  <pre><code>for (i = array.length; i &gt; 0; i--) {
      if (array[i] === otherArray[i]) {
          targetArray[i] = "string";
      }
  }
  </code></pre>
  
  <p>It should be pretty straight forward, but unfortunatly I cant get it to work.
  And please no JQuery or other plugins.
  Thank you.</p>