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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T17:51:58+00:00 2026-05-17T17:51:58+00:00

I am a self taught web developer and am still trying to come to

  • 0

I am a self taught web developer and am still trying to come to grips with some JavaScript fundamentals. Below are some quotes extracted from Douglas Crockford’s Good Parts.

“Functions in JavaScript are Objects”

“In JavaScript, arrays are objects, functions are objects, regular expressions are objects, and, of course, objects are objects”

“Every object is linked to a prototype object from which it can inherit properties” (namely constructor, toString, …)

If Function is an Object then why

 console.log(typeof Function);  // function 

is its type a function and not object

 console.log(Object.constructor);  // Function()

is it the constructor of its ‘parent’

 console.log(Function.constructor);  // Function()

puzzled so the constructor is in-fact a function?

 console.log(typeof Function.prototype); // Function

is the type of its prototype a function and not an object? i thought it inherited from Object

Answers to these questions will greatly assist my understanding on JavaScript.

  • 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-17T17:51:59+00:00Added an answer on May 17, 2026 at 5:51 pm

    If Function is an Object then why is its type a function and not object?

    Because the typeof operator is defined like that, probably for usability:

    • Object (native and does not implement [[Call]]) returns "object"
    • Object (native or host and does implement [[Call]]) returns "function"
    • Object (host and does not implement [[Call]])
      returns an Implementation-defined value that may not be "undefined", "boolean", "number", or "string".

    [[Call]] is an internal property of an object that identifies the object as a function (callable). A non-native object is an object provided by the host (e.g. browser), such as a DOM object or an instance of ActiveXObject.

    puzzled so the constructor is in-fact a function?

    Why wouldn’t it be? Constructors are functions. Instances can only be constructed using functions. Object.constructor is a function, but it’s also an object. See the following:

    console.log((function () { }) instanceof Object);
    //-> true
    

    Also, from the ECMAScript speficiation:

    Every built-in function and every built-in constructor has the Function prototype object, which is the initial value of the expression Function.prototype (15.3.4), as the value of its [[Prototype]] internal property.

    Unless otherwise specified every built-in prototype object has the Object prototype object, which is the initial value of the expression Object.prototype (15.2.4), as the value of its [[Prototype]] internal property, except the Object prototype object itself.

    And also, to answer your final puzzlement:

    The Function prototype object is itself a Function object (its [[Class]] is "Function") that, when invoked, accepts any arguments and returns undefined.

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

Sidebar

Related Questions

I have been in web programming for 2 years (Self taught - a biology
I'm a largely self-taught front-end developer only just making the transition into back-end development
I am a self taught developer. I use the term loosely because I only
Being mostly self-taught freestyle developer and having no experience of working in teams of
I'm a self-taught developer and, quite frankly, am not all that great at figuring
I'm a self taught developer and ive always been told not to use SELECT
BACKGROUND: I'm self-taught in VB.net, having been a VB6 developer for years. I'm now
I'm a self-taught developer and my experience is all in small applications that I've
So, I'm self-taught in the art of LaTeX, which means there are some really
I am a long-time, self-taught, amateur VB programmer who is now trying to teach

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.