Last active
November 4, 2016 01:35
-
-
Save matthieu-D/22d41ffcd0c0a7685be2fac06bd11e18 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
let obj = {}; | |
var symb = Symbol.for("Symbol"); | |
obj[symb] = 'supposed to be hidden'; | |
console.log(obj[symb]); // 'supposed to be hidden' | |
var sameSymb = Symbol.for("Symbol"); | |
console.log(symb === sameSymb); //true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment