title: How can I delete from an array
body: <p>i know there are similar threads but i have tried what you suggested there but still couldn´t solve my problem.</p>
  
  <pre><code>for(var i = text.length-1; i&gt;=0; i--)
      {
          if(text.charCodeAt(i) &lt; 42 || text.charCodeAt(i) &gt; 57)
          {
              text.splice(i,1);
          }
      }
      alert(text);
  </code></pre>
  
  <p>Why is alert(text); not executed? Something is wrong with the Splice, please help me.</p>