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