Topic awaiting preservation: prototype ? - anyone got a simple and clear explanation? (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: Northumberland, England |
posted 05-09-2003 23:48
Hi, very quick thread, |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 05-09-2003 23:58
It's a way of assigning properties or methods (functions) to a whole class of objects without making a separate copy of the property/method for each instance of the object. |
Paranoid (IV) Inmate From: Dublin, Ireland |
posted 05-10-2003 02:03
you legend Slime, I've never been able to figure that out before, nice one.. many cookies. |
Paranoid (IV) Inmate From: Northumberland, England |
posted 05-10-2003 02:22
Ok I think I get it, it is a very good explanation but I'm just a little bit on the dumb side of stupid so it may take a while before I fully understand it all. At the moment it just seems to have made things so much more complicated, and just when I was feeling good coz I nearly understand regular functions. |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 05-10-2003 07:38
If you haven't yet worked with objects, don't worry about prototypes. Prototypes are one thing that you should study when you are studying objects. So, if you don't yet know how objects work in JavaScript, don't concern yourself with this; you'll probably just get confused. Return to it when you get into objects. |