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

The Archive Base Latest Questions

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

Internally, JavaScript has only objects (and primitive types). Objects are unordered collection of key:value

  • 0

Internally, JavaScript has only objects (and primitive types). Objects are unordered collection of key:value pairs, where key is string and value can be any JavaScript type.

Arrays, though on the outside look like normal arrays of any other language, are actually a special case of objects, with natively supported language syntax.

Each array is an object where the key is a number and value can be any type. The keys are managed by JavaScript itself so that we can manipulate the array as an ordered collection of values. This is the reason we can use arrays in a for-in loop too. Additionally, JavaScript provides standard array operations (length, indexOf, splice, slice, join) as methods that take use the numbered keys to do their thing.

>>> typeof []
"object"

>>> Object.prototype.toString.call([])
"[object Array]"

Is my understanding correct, or am I missing something?

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

    One thing you missed up there is that the numeric indices themselves are simply named properties of the array object, there is no underlying order to them.

    Another thing that might be worth keeping in mind is that the Array constructor can be modified, which will influence all arrays from that point on.

    Consider the following:

    var a = new Array(1,2,3,4,5);
    a.slice(1); // returns [2,3,4,5]
    
    //Now for some prototype modification
    Array.prototype.slice = function(){alert("Foo");};
    
    var b = new Array(1,2,3,4,5);
    a.slice(1); // alerts "Foo"!
    
    //The [] syntax is also affected
    var c = [1,2,3,4,5];
    c.slice(1); // alerts "Foo"!
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a javascript function we use to track page stats internally. However, the
Are there internally two event loops in nodejs architecture? libev/libuv v8 javascript event loop
Internally, my website stores Users in a database indexed by an integer primary key.
HashMap internally has its own static final variables for its working. static final int
I am currently battling an IE JavaScript/DOM bug (what fun) and it has truly
How can I ensure that the headScript and headStyle helper include css files only
I'm building a website internally and the page has a canonical URL set in
Could someone please compare and contrast between the costs of creating objects in JavaScript/JQuery
The code below uses Javascript to create a base class, eventRaiser , that has
Context : This is for a software develop internally and used only by company's

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.