fixSentence

[-] What's the benefit over using `Symbol("id")` over a string `"id"`?
[+] What's the benefit of using `Symbol("id")` over a string `"id"`?
This commit is contained in:
daGo 2018-10-22 14:38:18 +03:00 committed by GitHub
parent dc904d122e
commit d9cbf25880
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -75,7 +75,7 @@ user[id] = "ID Value";
alert( user[id] ); // we can access the data using the symbol as the key
```
What's the benefit over using `Symbol("id")` over a string `"id"`?
What's the benefit of using `Symbol("id")` over a string `"id"`?
Let's make the example a bit deeper to see that.