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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T12:58:15+00:00 2026-05-11T12:58:15+00:00

I think its a 5am brain drain, but I’m having trouble with understanding this.

  • 0

I think its a 5am brain drain, but I’m having trouble with understanding this.

obj = ['a','b']; alert( obj.prototype ); //returns 'undefined' 

Why isn’t obj.prototype returning function Array(){ } as the prototype? It does reference Array as the constructor.

  • 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. 2026-05-11T12:58:16+00:00Added an answer on May 11, 2026 at 12:58 pm

    Because the instance doesn’t have a prototype, the class* does.

    Possibly you want obj.constructor.prototype or alternatively obj.constructor==Array

    * to be more accurate, the constructor has the prototype, but of course in JS functions = classes = constructors

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

Sidebar

Related Questions

Sorry if this question seems a bit complex but I think its all related
There are many errors here in SO, but this scenario I think its different.
I know this is more heavy question, but I think its interesting too. It
This may be opinionated or whatever, but I think its a fair question to
I should know this, but I don't and I think its probably a major
Sorry, this is not programming related but I still think its important. I know
Ok, I know this isnt a programming question, but I think its really important
I'm having trouble with my results of my count function, i think its due
I think its a rather simple question but I couldn't really find an answer
I'm having an issue with Firefox and the JPlayer (I think its the same

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.