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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T12:07:51+00:00 2026-06-14T12:07:51+00:00

Possible Duplicate: Is Chrome’s JavaScript console lazy about evaluating arrays? Basically what I am

  • 0

Possible Duplicate:
Is Chrome’s JavaScript console lazy about evaluating arrays?

Basically what I am finding is that google chrome is having issues with it’s developer tools.

Take this snippet for example:

console.log($(this).find(' .buttons .cancel'));
$(this).find(' .buttons .cancel').remove();

When that snippet is triggered, if there are two items that match those selectors google chrome outputs [, ]. basically it is finding the elements, but it seems to be slower at displaying the data than it should be.

I want to be able to log what items I am deleting, but as it stands I must run it first without the .remove() line. and then after I know that is working I can run it again with the remove() 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-06-14T12:07:51+00:00Added an answer on June 14, 2026 at 12:07 pm

    Consider the following test:

    • a={a:'a'}. It returns an object.
    • a.a='b'
    • expand the return from the first command. It shows a: "b"

    So, an object is always shown in the state it is in when it first gets open in the Chrome developer console. For (pseudo-)arrays, what matters is the state of the object when the console gets to it. This could be right after the normal javascript returns (hard to tell why. Performance reasons, perhaps).

    You can handle this by always logging elements that don’t change, such as:

    • primitive values: console.log("hello")
    • clones of DOM nodes or jQuery objects: console.log($(this).find(".buttons .cancel").clone())

    If logging an immutable object is not an option, you can still log while tracing the code: console.log(document); debugger;

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

Sidebar

Related Questions

Possible Duplicate: Is Chrome's JavaScript console lazy about evaluating arrays? I have the following
Possible Duplicate: Is Chrome's JavaScript console lazy about evaluating arrays? I write next js
Possible Duplicate: Is Chrome's JavaScript console lazy about evaluating arrays? Chrome's js console is
Possible Duplicate: Why does javascript object show different values in console in Chrome, Firefox,
Possible Duplicate: If Javascript has first-class functions, why doesn’t this work? In Chrome, the
Possible Duplicate: Consuming a Web service using Javascript Please note that I'm still getting
Possible Duplicate: alias to chrome console.log This is really silly, but I can't abbreviate
Possible Duplicate: Bizarre console.log behaviour in Chrome Developer Tools Given the following script :
Possible Duplicate: What is “undefined x 1” in JavaScript? In Chrome 21, feeding [,]
Possible Duplicate: Intercept calls to console.log in Chrome Can I extend the console object

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.