Skip to content

Instantly share code, notes, and snippets.

@shonnly
Last active April 26, 2020 19:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shonnly/cecc5a9d928050aecf66242d9cd8a747 to your computer and use it in GitHub Desktop.
Save shonnly/cecc5a9d928050aecf66242d9cd8a747 to your computer and use it in GitHub Desktop.
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