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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T01:15:01+00:00 2026-05-26T01:15:01+00:00

I see this nice diagram and I’ve done some tests in my Chrome browser,

  • 0

I see this nice diagram and I’ve done some tests in my Chrome browser, but I don’t know how to explain this:

> Function.prototype
  function Empty() {}
> Function.__proto__
  function Empty() {}
> typeof(Empty)
  "undefined"

What is the function Empty() {}, and why Function.prototype is a function not a object just like Object.prototype?

From the diagram above, it seems everything in JavaScript starts from Object.prototype, am I right about that?

  • 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-26T01:15:01+00:00Added an answer on May 26, 2026 at 1:15 am

    First, the function Empty() {} representation is V8 stuff.

    In V8, the Function.prototype object has "Empty” as the value of the Function.prototype.name property, so I guess you are probably using the Chrome’s Developer Console, and it displays the name of the function in this way.

    The name property of function objects is non-standard (not part of ECMA-262), that’s why we see differences between implementations.

    Now, Function.prototype is a function, that returns always undefined and can accept any number of arguments, but why?. Maybe just for consistency, every built-in constructor’s prototype is like that, Number.prototype is a Number object, Array.prototype is an Array object, RegExp.prototype is a RegExp object, and so on…

    The only difference (for example, between any function object and Function.prototype) is that obviously Function.prototype inherits from Object.prototype.

    it seems everything in javascript start from Object.prototype, am I right about that?

    Well, you’re right Object.prototype is the last object of the prototype chain of most objects, but in ECMAScript 5, you can even create objects that doesn’t inherit from anything (just like Object.prototype is), and form another inheritance chain, e.g.:

    var parent = Object.create(null),
        child = Object.create(parent);
    
    Object.prototype.isPrototypeOf(parent);  // false
    
    Object.getPrototypeOf(parent);           // null
    Object.getPrototypeOf(Object.prototype); // null
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using this nice printing script: <script type=text/javascript> function PrintElem(elem) { Popup($(elem).text()); } function
From searching I can see this has been asked time and time again, but
So I use this nice little widget to create tabs but my editor is
I was sent this nice non-recursive function for computing a fibonacci sequence. So I
Greetings I found this nice answer: How are methods found in AVM2 bytecode? See
I see this Array.ConvertAll method, but it requires a Converter as an argument. I
I have encountered with this nice tutorial to node.js . There is some example
See this question. How to show popup message like in stackoverflow I am trying
see this fiddle . This upon running gives an error in console. I'm currently
See this code: TicketStoreService fakeTicketStoreService = MockRepository.GenerateMock<TicketStoreService>(); fakeTicketStoreService.Expect(service => service.DoSomething(Arg.Is(new Guid())) .Return(new Guid()); fakeTicketStoreService.DoSomething(Arg.Is(new

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.