Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-27-2004, 11:24 PM   PM User | #1
Code Wizard
Regular Coder

 
Join Date: Nov 2003
Location: Code Heaven
Posts: 129
Thanks: 0
Thanked 0 Times in 0 Posts
Code Wizard is an unknown quantity at this point
The prototype property

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:
Code:
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...
Code Wizard is offline   Reply With Quote
Old 06-28-2004, 02:51 AM   PM User | #2
glenngv
Supreme Master coder!


 
glenngv's Avatar
 
Join Date: Jun 2002
Location: Los Angeles, CA Original Location: Philippines
Posts: 10,241
Thanks: 0
Thanked 112 Times in 111 Posts
glenngv will become famous soon enough
http://www.javascriptkit.com/javatutors/proto.shtml
__________________
Glenn
_____________________________________________
Play Tower of Hanoi Android app (Ad-FREE!)
Play Tower of Hanoi Android app (FREE!)
Go to Tower of Hanoi Leaderboard
Play Tower of Hanoi Facebook app
glenngv is offline   Reply With Quote
Old 06-30-2004, 12:21 AM   PM User | #3
Code Wizard
Regular Coder

 
Join Date: Nov 2003
Location: Code Heaven
Posts: 129
Thanks: 0
Thanked 0 Times in 0 Posts
Code Wizard is an unknown quantity at this point
Yeah .
Code Wizard is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:35 PM.


Advertisement
Log in to turn off these ads.