es6 javascript loop through object 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);
}