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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T12:58:18+00:00 2026-06-12T12:58:18+00:00

On the current Google Chrome (Version 22.0.1229.79, on an iMac with Mountain Lion), the

  • 0

On the current Google Chrome (Version 22.0.1229.79, on an iMac with Mountain Lion), the following code

var arr = [1, 3, 5];
console.log(arr);

delete arr[1];
console.log(arr);

console.log(arr.pop());
console.log(arr);

will show

[1, undefined × 2] 
[1, undefined × 2] 
5 
[1, undefined × 1] 

there are also other situation that caused Firefox to behave similarly as well. Are they bugs on Chrome and Firefox — but it would seem strange that both Firefox and Chrome are susceptible to similar bugs — or is it some behavior with array delete and console.log? Supposedly, console.log should not be running on a separate thread.

  • 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-12T12:58:20+00:00Added an answer on June 12, 2026 at 12:58 pm

    It is due to queued up console.log processing, so the printing is delayed, and it shows a later version of the object or array: Is Chrome's JavaScript console lazy about evaluating arrays?

    My answer there has 5 solutions and JSON.stringify() was the best one.

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

Sidebar

Related Questions

I have my current google maps code working to the point where if I
if (webBrowser1.Url.AbsoluteUri == www.google.com) { label9.Text = webBrowser1.Url.AbsoluteUri; } This is my current code.
I have used the following code to open the current page URL in Rich
I'm writing a Google Chrome extension which manipulates the current page (basically adds a
I'm making a google chrome extension, and I need to get the current page
I ran into this problem with the current latest stable of Google chrome browser
I am using captureVisibleTab as detailed here http://code.google.com/chrome/extensions/tabs.html chrome.tabs.captureVisibleTab(undefined,{format:png}, function(dataUrl){ //checking for dataUrl here
When I run this sample code in Google Chrome, the intended behavior--loading an image
m.google.com somehow requests the current location when loaded in Android's browser. I want to
I am using Google Maps in order to display current user location. While 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.