Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

BBS: Array of objects as object property - August 06, 1998 at 14:33:39

You are here: irt.org | BBS | Array of objects as object property [This BBS is closed]

Posted by Michael B on August 06, 1998 at 14:33:39:

Hi all,

I'm writing a program in JavaScript in which I have created two user defined objects.
I want one of the properties of object 1 to be an array containing multiple instances of object 2.
How can I achieve this? For example, I want to be able to refer to the properties of a particular
instance of object2 in object1 by going:

object1.object2[index].propertyvalue

Can anyone help?
Follow-ups:

You are here: irt.org | BBS | Array of objects as object property [This BBS is closed]

©2018 Martin Webb