Javascript untuk Loop Over Dictionary

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