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