Created
March 23, 2019 19:01
-
-
Save vipulbhj/8ef7eea2ba4bf3aa8b9a7becb7eaeacb to your computer and use it in GitHub Desktop.
For the Symbols blog
This file contains 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 sym1 = Symbol(); | |
const sym2 = Symbol(); | |
sym1 === sym2; | |
// false | |
const sym3 = Symbol.for("cat"); | |
const sym4 = Symbol.for("cat"); | |
sym3 === sym4; | |
// true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment