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:
parent
dc904d122e
commit
d9cbf25880
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ user[id] = "ID Value";
|
||||||
alert( user[id] ); // we can access the data using the symbol as the key
|
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.
|
Let's make the example a bit deeper to see that.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue