Created
April 26, 2020 19:12
-
-
Save shonnly/3bc817181c3a7e26eaabac08e2b768d4 to your computer and use it in GitHub Desktop.
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
var s1 = Symbol('foo'); // local symbol for 'foo' | |
var s2 = Symbol.for('foo'); // global symbol for 'foo' | |
s1 === s2 // false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment