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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T21:29:27+00:00 2026-06-16T21:29:27+00:00

In JavaScript is Object the root of all entities or Function is the root?

  • 0

In JavaScript is Object the root of all entities or Function is the root?

For example in the following source objects-functions-and-prototypes-in.html, first the author says “Every entity in Javascript is an object”, and later it says “any new object can only be created as an instance of a function (even when you do ‘var a = new Object;’, Object is a function btw)”. The author is basically contradicting himself as far as I can see.

And I see the same chaotic comments in so many other resources on JavaScript. In Java it is easy, you know the first entity in any class Hierarchy is the Object class, but in JavaScript, all I see is chaos.

So, can someone please clarify if Object comes first or Function? What is the root.

  • 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-16T21:29:29+00:00Added an answer on June 16, 2026 at 9:29 pm

    I believe the end of the line is Object.prototype, which is an object. This is what makes me think so:

    Function.prototype;                    // the empty function object
    Function.prototype.__proto__;          // the default Object prototype
    Object.prototype;                      // the default Object prototype
    Object.prototype.__proto__;            // null
    

    The ECMAScript 5.1 specification states it like this:

    1. In 15.3.4 Properties of the Function Prototype Object:

      The value of the [[Prototype]] internal property of the Function prototype object is the standard built-in Object prototype object

    2. And in 15.2.4 Properties of the Object Prototype Object

      The value of the [[Prototype]] internal property of the Object prototype object is null

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

Sidebar

Related Questions

Is there a way to change the root object in JavaScript? For example, in
I have a javascript object, which I've added a number of prototyped functions to,
Within a Javascript object ( testObject ) I am populating an array with objects
I have a Javascript object created as follows: var ccStatTracker = (function (){ ccmap:{
The following snippet of code converts a Javascript object into an XML string using
I got this example demonstrating AJAX from Stoyan Stefanovs Object Oriented JavaScript at page
I have a javascript object like so: var object = [{ id: 1, title:xyz
Possible Duplicate: javascript object, access variable property name? I'm trying to call a method
Trailing commas in JavaScript object literals are not accepted as a valid JavaScript syntax
I have a Javascript object that requires 2 calls out to an external server

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.