Create Array With Length Javascript Code