Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@Ibro
Last active April 26, 2017 04:57
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 Ibro/fd7dd40c8f13c6d95f12b4fbf0171f43 to your computer and use it in GitHub Desktop.
Save Ibro/fd7dd40c8f13c6d95f12b4fbf0171f43 to your computer and use it in GitHub Desktop.
JavaScript symbols basics - Coding Blast - www.codingblast.com
let symbol1 = Symbol();
let symbol2 = Symbol();
console.log(symbol1 === symbol2);
var obj = {};
obj[symbol1] = 5;
obj[symbol2] = 11;
console.log(obj);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment