Skip to content

Commit fd033bd

Browse files
Update lesson 12 - ES2015.md
1 parent 3c67738 commit fd033bd

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lesson 12 - ES2015.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -488,9 +488,9 @@ let student = {name: "Latori"};
488488
let status = new Map();
489489

490490
status.set(name, "Latori");
491-
student.set("status", "awesome")
492-
console.log(student.get(name));
493-
console.log(student.get("status"))
491+
status.set("feeling", "awesome")
492+
console.log(status.get(name));
493+
console.log(status.get("feeling"))
494494
//Latori
495495
//awesome
496496
```
@@ -1013,3 +1013,5 @@ As you can see, writing modular code is the future of JavaScript. The modular pa
10131013
[For and Against Let](https://davidwalsh.name/for-and-against-let)
10141014

10151015
[ES2015 Constants](https://mathiasbynens.be/notes/es6-const)
1016+
1017+
[Map, Set, WeakMap, WeakSet](http://www.2ality.com/2015/01/es6-maps-sets.html)

0 commit comments

Comments
 (0)