2

It is said every javascipt object have internal prototype property,then predefined Function object also have the internal prototype property.So which object prototype does its internal prototype called proto points to?

function Object(){}
alert(Object.constructor)//function Function(){[native code]}

so i m referring to the internal prototype of the function Function(){} object not its prototype property . like Function object instance have their internal prototype pointing to Function object.prototype likewise Function object internal prototype point to what?not taking about the prototype property that gets added to it.I know what will the internal prototype of the prototype object points to.

asked Jan 28, 2013 at 19:30
10
  • Can you show a code example of what object you're referring to? Commented Jan 28, 2013 at 19:32
  • @rekire why dont it have the sence??Function object also have the internal prototype property Commented Jan 28, 2013 at 19:34
  • Why do you keep asking this question? Commented Jan 28, 2013 at 19:35
  • @MaizerePathak, please have someone assist you with your English, it is difficult to understand you. Rephrasing your question would be helpful. Commented Jan 28, 2013 at 19:35
  • All your questions seem to be about prototypes and functions... if you don't understand the answers to your previous questions, please comment on them and ask for clarification instead of asking a slightly modified version of the same question. Commented Jan 28, 2013 at 19:37

2 Answers 2

2

All objects inherit from Object.prototype, but they may inherit from other prototypes as well depending on the type of object. Functions inherit from Function.prototype (which inherits from Object.prototype).

answered Jan 28, 2013 at 19:34
Sign up to request clarification or add additional context in comments.

1 Comment

@MaizerePathak, Function is a function, so it inherits from Function.prototype.
0

In Javascript, functions are just a specific type of object. Thus a function's prototype is the same thing as an object's prototype. For more reading on functions as objects, check out this link.

answered Jan 28, 2013 at 19:35

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.