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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T15:49:35+00:00 2026-06-04T15:49:35+00:00

In all the books/materials that I’ve read, they talk about in universal, absolute terms

  • 0

In all the books/materials that I’ve read, they talk about in universal, absolute terms that all instances of an object inherit and have access to methods of the prototype the object was created from. For the most part, this seems generally true. But this doesn’t seem to be as universal as I have read. A simple example:

The length property is undefined for the objects that are typeof number.

For example:

x = 5;
typeof x;
=> returns number
number.length
=> returns undefined

I understand that it wouldn’t make much sense for a number to have a length (though I suppose it could reflect the number of digits in the number), the part that bothers me is that everything I’ve ready talks about this absolute principle of inheritance. And since everything is derived from the built-in Object, and even the built-in Number object has the length property, why would that property not be accessible in the example above for x?

  • 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-04T15:49:37+00:00Added an answer on June 4, 2026 at 3:49 pm

    The symbol Number refers to the number constructor, not a prototype object. All functions have a “.length” property, giving the number of formal parameters in the function declaration. The Number builtin is indeed an object, as you say, but in particular it’s a function (an instance of Function).

    There’s no “length” property of Number.prototype, which is why instances have no such property. (You can of course add one to any instance, or to the prototype, if you want to.)

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

Sidebar

Related Questions

I read books, articles, tutorials, and all that kind of stuff about the n-tier
In almost all books and articles I have read about about HIGHMEM in Linux
I am trying to get all Books from the server (local PHP script), that
I am currently building a site and all the books I have read on
I'm working through some MSDN examples, and some books on ADO.Net. What they all
I have a MainWindow with a table that shows all books in an overview.
books = Book.find(:all) articles = Articles.find(:all) By reading from http://guides.rubyonrails.org/layouts_and_rendering.html I knew that I
I am trying to create a query that will list all books by the
i have been programming for sometime but all of my programming books have not
Why on all images that show queue of commits in Pro Git book arrows

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.