Skip to content

Instantly share code, notes, and snippets.

@shonnly
Last active April 26, 2020 18:30
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/4e4a4e7965b59dcbde818f2a82a33938 to your computer and use it in GitHub Desktop.
Save shonnly/4e4a4e7965b59dcbde818f2a82a33938 to your computer and use it in GitHub Desktop.
var s = Symbol('foo');
alert(s); // Uncaught TypeError: Cannot convert a Symbol value to a string
// use alert(s.toString()) or alert(s.description) instead
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment