title: How to remove element of Javascript Array with safe method?
body: <p>I have a code :</p>
  
  <pre><code>myarray[150] = 'a';
  myarray[80] = 'b';
  myarray[122] = 'c';
  </code></pre>
  
  <p>And then :</p>
  
  <pre><code>myarray.splice(80, 1);
  myarray[80] = 'b';
  </code></pre>
  
  <p>The result of my code above on my application is :</p>
  
  <blockquote>
    <p>[150] = 'a'; [80] = 'b'; [121] = 'c';</p>
  </blockquote>
  
  <p>I don't understand why <code>c</code> value have <code>121</code> as index. Can anyonen explain what's wrong with my code?</p>