-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmap.html
More file actions
26 lines (24 loc) · 778 Bytes
/
map.html
File metadata and controls
26 lines (24 loc) · 778 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<!DOCTYPE html>
<html>
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.29/browser.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.29/browser-polyfill.js"></script>
<script type="text/babel">
var books = new Map();
books.set("Umberto Eco", "Le nom de la rose");
console.log(books);
books.set("Michel Tournier", "Le roi des aulnes");
console.log(books.size);
console.log(books);
//console.log(books.get("Umberto Eco"));
books.forEach(function (val, key, myMap) {
console.log(val);
console.log(key);
console.log(myMap);
})
</script>
<title>ES6 via babel</title>
</head>
<body>
</body>
</html>