...

View Full Version : The prototype property



Code Wizard
06-27-2004, 11:24 PM
OK,so can anyone show some uses of this property.
What does it return ?

I know that the props of all instances of an object type can be added/modified,like this:


myobj.prototype.newProp="..."


Again.what does obj.prototype return? because i've seen code that overwrites this property entierly...that is for user-defined objects,coz built-in objects won't let you do that...

glenngv
06-28-2004, 02:51 AM
http://www.javascriptkit.com/javatutors/proto.shtml

Code Wizard
06-30-2004, 12:21 AM
Yeah .



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum