js loop through associative array

JavaScript
var months = [];
months["jan"] = "January";
months["feb"] = "February";
months["mar"] = "march";

for (var key in months) {
    var value = months[key];
    console.log(key, value);
}
Source

Also in JavaScript: