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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T01:55:39+00:00 2026-05-22T01:55:39+00:00

why does Object._ proto _ instanceof Function gives me false? alert(Object.__proto__ ); // clearly

  • 0

why does Object._proto_ instanceof Function gives me false?

alert(Object.__proto__ ); //  clearly Object.__proto__ is a function right?
alert(typeof Object.__proto__); // clearly Object.__proto__ is a function right?
alert(Object.__proto__ instanceof Function); // !
  • 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-05-22T01:55:39+00:00Added an answer on May 22, 2026 at 1:55 am

    Not all functions are created via the Function constructor. instanceof checks specifically to see if the given item was created by that specific function.

    You get a similar effect in browser environments when dealing with multiple windows. I mean, if you have function foo in window A:

    function foo(arg) {
        if (arg instanceof Array) {
            // It's an array, do something
        }
    }
    

    …and you have code in another window B that calls it:

    opener.foo([]);
    

    …then you’d expect foo to realize that arg is an array, right? But it doesn’t, because although arg is an array, it wasn’t created by the Array constructor in the window that foo is in.

    More about figuring out what things are here: Say what?

    If you’re fascinated by this stuff (as you seem to be), there’s nothing quite like reading the specification. Yes, the prose is…dry…and the terminology is….dense…but it gets more and more interesting as you learn more and more about the underlying workings.


    Off-topic: Beware that __proto__ is non-standard and not supported by all JavaScript implementations.

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

Sidebar

Related Questions

// Don't break the function prototype. // pd - https://github.com/Raynos/pd var proto = Object.create(Function.prototype,
In Ruby (1.8.X) Why does Object both inherit off Kernel and include it? Wouldn't
How does container object like vector in stl get destroyed even though they are
I get this error: System.Reflection.TargetException: Object does not match target type. when trying to
Does creating an object using reflection rather than calling the class constructor result in
We have a .NET object that does a lot of reading/writing with the database.
I am creating a flash object that does some heavy image lifting. What I
Consider a hypothetical method of an object that does stuff for you: public class
This concept seems to trouble me. Why does an NSError object need its pointer
I got this question from this discussion . A method call like object.m does

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.