Can we attach arraylist or function with a javascript object at runtime
function abc(){
this.a = 1;
this.b = 2;
}
var obj = new abc();
obj.list.add("abc"); // list is not declare in class abc
Can we attach arraylist or function with a javascript object at runtime
function abc(){
this.a = 1;
this.b = 2;
}
var obj = new abc();
obj.list.add("abc"); // list is not declare in class abc