(function() {

// MAXB.NET LABS

})();

javascript

Js Hash table – problemi con firebug

Posted on by Massimiliano Balestrieri | Comments

Stranamente firebug non logga correttamente un hash.
Sto sbagliando qualcosa?

var _hash = [];
_hash["sala-1"] = "test1";
_hash["sala-2"] = "test2";

//no
console.log(_hash);
//yes
for (var i in _hash) {
    console.log(_hash[i]);
}
This entry was posted in javascript and tagged , . Bookmark the permalink.