संभव डुप्लिकेट:
Is Chrome's JavaScript console lazy about evaluating arrays?क्रोम एक मान को एक सरणी से हटाए जाने के रूप में क्यों दिखा रहा है?
Chrome की js कंसोल किसी हटाए गए मूल्य के साथ एक सरणी दिखाया जा रहा है इससे पहले कि मूल्य हटाया जाता है। क्यूं कर?
jsFiddle that demonstrates this behavior।
var list=[];
list.push("one");
list.push("two");
list.push("three");
console.log(list); //["two", "three", undefined × 1]
$("#output").append(JSON.stringify(list));//["one","two","three"]
list.shift();
$("#output").append($("<br>"));
console.log(list); //["two", "three"]
$("#output").append(JSON.stringify(list));//["two","three"]
इसी तरह के प्रश्नों पर अधिक आधिकारिक उत्तर हो सकते हैं: http://stackoverflow.com/questions/4198912/bizarre-console-log-behaviour-in-chrome-developer-tools, http://stackoverflow.com/प्रश्न/11214430/गलत-मूल्य-इन-कंसोल-लॉग, http://stackoverflow.com/questions/11118758/bug-in-console-log –
http://stackoverflow.com/questions/4057440/is-chromes -javascript-console-lazy-about-मूल्यांकन-arrays? lq = 1 –
क्या हमारे पास इस समस्या के लिए डुप्लिकेट प्रश्नों का एक गुच्छा है? –