Create Array With Length Javascript Method Overloading In Oop