js for each dictionary code example
Example: javascript for loop over dictionary
var dict = {'a': 1, 'b': 2, 'c' : 3};
for([key, val] of Object.entries(dic)) {
console.log(key, val);
}
var dict = {'a': 1, 'b': 2, 'c' : 3};
for([key, val] of Object.entries(dic)) {
console.log(key, val);
}