for loop associative array javascript es6 code example
Example: loop trough javascript array associative
var months = [];
months["jan"] = "January";
months["feb"] = "February";
months["mar"] = "march";
for (var key in months) {
var value = months[key];
console.log(key, value);
}