Created
July 1, 2018 09:46
-
-
Save nairihar/39d2dfcbb1275c945bd9833d110479ac to your computer and use it in GitHub Desktop.
JavaScript series, part 2, Map, medium
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const myMap = new Map([[1, 11]]); | |
console.log(myMap.get(1)); // 11 | |
console.log(myMap.get(2)); // undefined |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment