Last active
April 26, 2017 04:57
-
-
Save Ibro/475d22fb7021f50bc96e2f4dee9434c3 to your computer and use it in GitHub Desktop.
Symbols basics - Coding Blast - www.codingblast.com
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
let symbol1 = Symbol('coding'); | |
let symbol2 = Symbol('coding'); | |
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