Remove an element from an array in Javascript
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/2003815/how-to-remove-first-element-of-an-array-in-javascript">How to remove first element of an array in javascript?</a>  </p>
</blockquote>



<pre><code>function write() {
    for (var x = 1; x &lt;= 3; x++) {
        var question = new Array("If you are goofy which is your leading foot", "Riding switch is when you do what", "On your toe side which way should you lean", "question 4", "question 5", "question 6");

        var l = question.length;

        var rnd = Math.floor(l * Math.random());

        document.write(question[rnd]);
        document.write("&lt;br&gt;")
    }

}
</code></pre>

<p>This is my code but it outputs the same question(string) sometimes when i want the three questions to be unqique, how do i remove an element from the array after its output?</p>
