var dict = {'a': 1, 'b': 2, 'c' : 3};
for([key, val] of Object.entries(dic)) {
console.log(key, val);
}
'use strict';
const object = {'a': 1, 'b': 2, 'c' : 3};
for (const [key, value] of Object.entries(object)) {
console.log(key, value);
}
for (const [key, value] of myMap.entries()) {
console.log(key, value);
}