looping through object es6 code example
Example: es6 loop through object
for (var [key, value] of phoneBookMap) {
console.log(key + "'s phone number is: " + value);
}
for (var [key, value] of phoneBookMap) {
console.log(key + "'s phone number is: " + value);
}