Update article.md
Typo of Symbol in summary section.
This commit is contained in:
parent
2a0516d174
commit
015396de86
1 changed files with 1 additions and 1 deletions
|
@ -256,7 +256,7 @@ Other symbols will also become familiar when we study the corresponding language
|
||||||
|
|
||||||
Symbols are created with `Symbol(name)` call.
|
Symbols are created with `Symbol(name)` call.
|
||||||
|
|
||||||
Symbols are always different values, even if they have the same name. If we want same-named symbols to be equal, then we should use the global registry: `Symbol.for(name)` returns (creates if needed) a global symbol with the given name. Multiple calls of `Symfol.for` return exactly the same symbol.
|
Symbols are always different values, even if they have the same name. If we want same-named symbols to be equal, then we should use the global registry: `Symbol.for(name)` returns (creates if needed) a global symbol with the given name. Multiple calls of `Symbol.for` return exactly the same symbol.
|
||||||
|
|
||||||
Symbols have two main use cases:
|
Symbols have two main use cases:
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue