Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7944587
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T00:35:46+00:00 2026-06-04T00:35:46+00:00

JavaScript object created with a prototype maintains live connection to its prototype, so that

  • 0

JavaScript object created with a prototype maintains “live” connection to its prototype, so that changing the prototype also affects the objects created from it.

The semantics of the language would be much simpler if newly created object just copied everything from the prototype and then forgot about it. The actual underlying implementation could be smarter, of course.

Is this feature of live/dynamic connection actually used in some well known JavaScript library or program?

EDIT: I’m not proposing JS inheritance system is flawed, I just want to understand the benefits of aforementioned feature.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T00:35:48+00:00Added an answer on June 4, 2026 at 12:35 am

    Surely. I think the most prominent use of this feature is the dynamical adding of methods to the jQuery prototype (called “plugins”), which is exposed as jQuery.fn.

    I can’t understand why you think “the semantics of the language would be much simpler if newly created object just copied the prototype properties”. Why would that be simpler? You can create objects with that method, using a extend() function, but that knocks the concept of prototypical inheritance on the head.

    It is one of the core features to have that non-static inheritance in Javascript. It is useful to modify the prototype object of already generated instances for:

    • adding features, like described above. You can load whole plugins only if you need them.
    • enhance features (sometimes). This is often used to overwrite non-standard behaviour
    • really change them (seldom). This can be used with configuration objects, which inherit from an object with the default settings. Then you can change the default settings, and they will apply to all instances (at least to them which didn’t overwrite the property in question).
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a JavaScript extension for an array object as follows: Array.prototype.where =
I've created a Javascript object via prototyping. I'm trying to render a table dynamically.
I've created a JavaScript object to hold onto a value set by a user
Is it bad javascript practice to not assign a newly created object to a
I'm using Nodejs and Socket.io. When the client connects, new JavaScript objects are created.
I'd like to be able to create a javascript object from my html form
What objects are created initially by compilers(?) of javascript? I've been learning Io in
Can JavaScript classes/objects have constructors? How are they created?
I have an object I created in JavaScript. Let's say it looks like this:
I have a situation, where I need to create a new JavaScript object that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.