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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T18:48:06+00:00 2026-06-10T18:48:06+00:00

I have been reading that in Javascript : Everything is an object (except primitives

  • 0

I have been reading that in Javascript :

  • Everything is an object (except primitives such as number,string, boolean, null & undefined)
  • Objects can be treated as associative arrays.

From what I conclude, Array.isArray() should return true for everything (with primitive exceptions aforementioned). What wrong did I understand ?

Thanks !

  • 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-10T18:48:08+00:00Added an answer on June 10, 2026 at 6:48 pm

    There’s a difference between an Object and an Array. An Array is actually an Array Object. It has different methods than other objects. A String is a String object. However, you can access objects as if they were an array. Take the following object

    var obj = {
        value1: 'Some Value',
        value2: 'Some Other Value'
        };
    

    You can get values like

    obj['value1'];
    obj['value2'];
    

    This doesn’t mean that it’s an Array Object, it just has a different way of accessing it

    isArray() checks if the object is an Array Object, not if you can access it like an array

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

Sidebar

Related Questions

I'm trying to improve my Javascript coding style and have been reading that it's
I have been reading that if you want to convert from JavaScript dates to
I have been reading Object-Oriented Javascript by Stoyan Stefanov, and at one point he
I have been reading that creating dependencies by using static classes/singletons in code, is
I have been reading that using HibernateDaoSupport isn't a good idea, so I need
I have been reading up on the changes that .NET4.5 will bring, and on
I have been reading about Quicksort and found that sometimes it' s referred to
As titled, how can I do that? I have been reading some Silverlight/WPF animation
I have been reading about css and js compression and minimizing. In particular that
I have been reading obsessively in SO how to perform a date object comparison

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.