title: I am pushing items into an array but the script becomes unresponsive?
body: <p>I'm trying to add an array's members back to itself using a for loop.</p>
  
  <p>Why does this code cause an unresponsive script?</p>
  
  <pre><code>var magicarray = {
  
      arraymemeber: [1, 2, 3, 4, 5],
  
      duplicate: function () {
          for (var i = 0; i &lt; this.arraymemeber.length; i++) {
              this.arraymemeber.push(this.arraymemeber[i]);
          };
      }
  };
  
  console.log(magicarray.duplicate());
  </code></pre>