Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Nov 2003
    Location
    Code Heaven
    Posts
    129
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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...

  • #2

  • #3
    Regular Coder
    Join Date
    Nov 2003
    Location
    Code Heaven
    Posts
    129
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Yeah .


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •