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

  • Home
  • SEARCH
  • 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 6773285
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T15:39:00+00:00 2026-05-26T15:39:00+00:00

I just watched an introductory JavaScript lecture from Douglas Crockford, in which he mentions

  • 0

I just watched an introductory JavaScript lecture from Douglas Crockford, in which he mentions a function called object that should be used to create a new object linked to an object as its parameter. I would guess what he means by that is that if I say

var objB = object(objA);

The objB‘s internal [[prototype]] reference is set to objA, although he didn’t explicitly formulate it like that.

On the other hand, I have read his book, in which he doesn’t mention such a function at all and instead presents his own way of creating an object from a prototype, defining following function :

Object.create = function(o) {
   var F = function() {};
   F.prototype = o;
   return new F();
}

Essentially taking advantage of the behavior of the new operator that sets the internal [[prototype]] link of the newly created object to whatever the constructor function’s prototype property points to.

My question is why would he omit a built-in function and invent his own way to do the same thing. Is the former call to object function really equivalent to

var objB = Object.create(objA);

Or is there some slight 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-26T15:39:01+00:00Added an answer on May 26, 2026 at 3:39 pm

    The two functions are one and the same, and neither are built in to JavaScript. See Crockford’s article describing why he switched between the different naming conventions.

    Edit from the future: I saw this old answer and wanted to point out that Object.create() is indeed a native (and very important) ES5 method.

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

Sidebar

Related Questions

I just watched a video of Douglas Crockford's presentation about his 2009 book JavaScript:
Having watched samples from Rob Conery's Kona application, I see that he is using
I just watched a youtube tutorial called many methods and instances. He made a
I just watched a jQuery mobile introductory video featuring the flip transition. I find
I just watched the Windows Azure intro video and it left me feeling like
I just watched the last Channel 9 vid on the upcoming parallel extensions to
I've read the questions on S.O. regarding Singleton and just watched an hour long
I'm just learning Ruby on Rails. I've read a few books, I've watched lots
Just looking for the first step basic solution here that keeps the honest people
Just how much slower are events? I have written a streaming XML parser (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.