<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>JavaScript for..of iterate of an Maps</title>
</head>
<body>
<script type="text/javascript">
// Press F12 - View result on Console Panel
var m = new Map();
var key1 = 'a';
var key2 = 'b';
var key3 = 'c';
m.set(key1, 'AAA');
m.set(key2, 'BBB');
m.set(key3, 'CCC');
for (var [key, value] of m) {
console.log(key + " : " + value);
}
</script>
</body>
</html>