Last active
April 26, 2020 19:05
-
-
Save shonnly/cecc5a9d928050aecf66242d9cd8a747 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('s'); // creates a unique local Symbol (not Global) | |
var s2 = Symbol.for('s'); // creates Global Symbol instance accessible from anywhere at runtime | |
s1 === s2 // false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment