This commit is contained in:
Ilya Kantor 2019-08-17 20:28:00 +03:00
parent 28a514a0d7
commit cdf6156088
4 changed files with 6 additions and 7 deletions

View file

@ -3,11 +3,11 @@
By specification, object property keys may be either of string type, or of symbol type. Not numbers, not booleans, only strings or symbols, these two types.
Till now we've only seen strings. Now let's see the advantages that symbols can give us.
Till now we've been using only strings. Now let's see the benefits that symbols can give us.
## Symbols
"Symbol" value represents a unique identifier.
A "symbol" represents a unique identifier.
A value of this type can be created using `Symbol()`: