A naive confusion:
var arr1 = new Array(); var arr2 = Object.create(Array.prototype); //Inserting elements in \"both arrays\" arr1[0] =0; arr1[9] =9; arr2[0]
var arr1 = new Array(); is the proper way to instantiate an array. It is the same as using the array literal: var arr1 = [];
var arr1 = new Array();
var arr1 = [];