just a quick one... I am writing a few functions/methods, and I want to pass an object when they are done, but I cant figure out how to do it.
i can return an array
return new Array ( a, b, c, d, e);
but I want to return an object with properties
obj.a
obj.b
obj.c, etc
return new Object (obj);
doesnt work and I have been searching the net.. any feed back would be really appreciated
i can return an array
return new Array ( a, b, c, d, e);
but I want to return an object with properties
obj.a
obj.b
obj.c, etc
return new Object (obj);
doesnt work and I have been searching the net.. any feed back would be really appreciated
Comment