Created
April 26, 2020 19:28
-
-
Save shonnly/7e987ecfd7a78fd667e15e1b7da29395 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
var obj = {}; | |
obj[Symbol('name')] = 'Jordan'; | |
console.log(obj); // {Symbol(name): "Jordan"} | |
obj[Symbol('name')] = 'Jordan'; // Idempotent? | |
console.log(obj); // {Symbol(name): "Jordan", Symbol(name): "Jordan"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment