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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T09:14:26+00:00 2026-06-12T09:14:26+00:00

I wonder why even in the Javascript Definitive Guide 6th ed, O’Reilly, p. 149

  • 0

I wonder why even in the Javascript Definitive Guide 6th ed, O’Reilly, p. 149 – 150, it keeps on using Array.join() or Array.concat(). Should it be Array.prototype.join() instead?

But while Chrome doesn’t have Array.join defined, Firefox actually does, and it can be invoked by Array.join(array, string). The difference might be important as one is a class method and the other is an instance method. I wonder why that is?

The book kept on using Array.join even in the Core Javascript Reference docs, but maybe it meant Array.prototype.join, and also, it seems to suggest that Array has a length property, but it really should also be a property of Array.prototype, and is Array.prototype.length?

By the way, it seems that Firefox’s implementation of Array.prototype.join can be

Array.prototype.join = function(s) {
    return Array.join(this, s);
}

but I don’t see that usually being done (defining a class method that can be invoked on an instance).

  • 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-12T09:14:27+00:00Added an answer on June 12, 2026 at 9:14 am

    FireFox puts a version of prototyped methods on the related constructor.

    This isn’t part of the ECMAScript standard, but rather is part of the specific JavaScript superset of ECMAScript.

    The book should make that distinction, unless the book is talking specifically about the JavaScript extensions.

    Keep in mind that JavaScript !== ECMAScript. ECMAScript is the language standard, and JavaScript is an implementation of the 3rd edition of that standard, and includes a superset of functionality not specified by the standard.

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

Sidebar

Related Questions

I wonder how gmail/Google keeps a user logged in even across sessions. And how
I wonder how to perceive orientation changes even if the device's current orientation is
I wonder if such a thing is possible or even exist : In the
I wonder if there's some way of doing this, or even if it should
I wonder, using Eclipse's PyDev plugin , how come documentation does not always show
So I've been looking into full development object oriented JavaScript practices, and wonder about
What is the point in validating your HTML forms using Javascript, if you are
I wonder if it is possible to get MatchCollection with all matches even if
I'm using Opera 11.50 and I have a JavaScript-function that works as a callback
I'm storing my passwords on a server, and, using nothing but HTML/JavaScript, I need

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.