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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T18:28:55+00:00 2026-06-03T18:28:55+00:00

I am trying to learn debugging Javascript in Chrome’s Javascript console. However, I don’t

  • 0

I am trying to learn debugging Javascript in Chrome’s Javascript console. However, I don’t understand how the console displays the data type of an object . For instance, in the Javascript Console, it shows this:

enter image description here

In this picture, I am using JQuery. I tried to do a console.log on a few variables but how do I know if a particular variable is a JQuery object or a raw DOM object? Is the HTMLDivElement or the other one that shows the div tag listed in the console a JQuery object or a raw DOM object?

In general, how should I know the data type of an object or variable in Javascript in a debugger console like the Chrome’s Javascript console? In languages such as Java, the data type of a variable is shown clearly in the debugger; I can know from the debugger what kind of object the variable is, whether it is an instance of Class A or instance of Class B, etc.

  • 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-03T18:28:57+00:00Added an answer on June 3, 2026 at 6:28 pm
    if (variable instanceof jQuery) // Or variable.jquery 
        // jQuery object.
    

    Live DEMO

    instanceof docs on MDN:

    The instanceof operator tests whether an object has in its prototype chain the prototype property of a constructor.


    The way jQuery checks for DOM elements is with nodeType:

    // Handle $(DOMElement)
    if ( selector.nodeType ) {
    

    The way jQuery checks for jQuery object is with the jquery property:

    // HANDLE: $(expr, $(...))  
    else if ( !context || context.jquery ) {
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to learn about this feature of javascript I keep seeing in code,
Trying to learn PL/SQL with multimedia data. Can anyone please point out that from
In trying to learn JavaScript closures, I've confused myself a bit. From what I've
I was just trying to learn and understand jQuery source code (so far with
I am trying to learn how to debug programs with gdb following Debugging with
Trying to learn jquery here so I took a regular javascript snippet that loops
I am trying to learn javascript/jquery, using firebug to debug and have built a
I am attempting to learn debugging in x86 assembly and am trying to debug
Im trying to learn javascript by tracing through some code at the moment, I
Trying to learn how to use JSON and parse the json data.i am using

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.