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 7568211
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T14:51:59+00:00 2026-05-30T14:51:59+00:00

It seems like there is a difference here… Let’s say we have function MyConstructor()

  • 0

It seems like there is a difference here…

Let’s say we have function MyConstructor() {}

MyConstructor’s [[Prototype]] is Function.prototype, not MyConstructor.prototype.

In other (non-standard/”console.log-able”) words:
MyConstructor.__ proto__ is not MyConstructor’s MyConstructor.prototype

TRY THIS:

function MyConstructor() {};
(MyConstructor.__proto__ === MyConstructor.prototype); //false?! why?

Why is this so? Can someone explain it to me the difference?

  • 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-05-30T14:52:01+00:00Added an answer on May 30, 2026 at 2:52 pm

    Think of it like this. MyConstructor is a function object, so it was created by Function; therefore its [[Prototype]] (or __proto__) is identical to Function.prototype.

    In the same way, var myObj = new MyConstructor() creates an object myObj with a [[Prototype]] identical to MyConstructor.prototype.

    To put it another way, functions have a prototype property, and when you invoke functions with new, they will construct an object having a [[Prototype]] identical to the constructor function’s prototype property… however a function’s prototype property is not the same thing as its [[Prototype]] (or __proto__) property, because a function follows the same rules as other objects and gets its internal [[Prototype]] property from the function that constructed it (which is always Function, incidentally).


    To explain further, [[Prototype]] and prototype have entirely different purposes. [[Prototype]] is used when resolving an object’s properties. If an object doesn’t have a property, its [[Prototype]] is checked, and then that object’s [[Prototype]], and so on, until either a property is found or you hit the end of the prototype chain.

    In contrast, prototype is the mechanism by which you assign [[Prototype]] properties to objects, since you can’t access them directly other than with the non-standard __proto__ property.

    Since functions are objects, they have both a [[Prototype]] internal property, used to resolve properties as with normal objects, and a prototype property, which is assigned as the [[Prototype]] of new objects constructed by the function.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

It seems like there should be something shorter than this: private string LoadFromFile(string path)
It seems like there is a lot of overhead involved in rapidly opening and
It seems like there should be a simpler way than: import string s =
It seems like there should be a removalAllOccuring(Collection) (or similiar) method in Multiset. A
It seems like there used to be way more binary protocols because of the
I am used to the c-style getchar() , but it seems like there is
I been wondering about this for a while. It seems like there are so
It seems to me like there's a lot of sheeping going on, with everyone
cgi.escape seems like one possible choice. Does it work well? Is there something that
Is there some easy way to pad Strings in Java? Seems like something 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.