I am currently writing an extension for Chrome. When debugging my application, I log a javascript array to the console, as shown below:
function updateGroups() {
var container = document.getElementById("groups_container");
var prototype = document.getElementById("group");
chrome.storage.local.get('groups', function(groups_local) {
groups = groups_local.groups;
console.log(groups); //Debug
});
}
Calling the function twice gives me the following output (the array is at both calls filled with 42 elements):
Why are the two outputs formatted differently, with one just showing the number of elements in the array, and the other actually displaying its elements?