i want to create an empty array to fill it later : <p>hi guys i tryed to create an empty array to fill it later. I post my code so you can help me. XD</p>

<pre><code>"use strict"
var array = new array(6);
 for(var i = 0; i &lt;= 5; i++){
    do {
        var number = prompt("Put the element" + (i+1), 0);
    }while(isNaN(number));
    arr.push(number);
 };

write.data(array);
</code></pre>
