We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ffba80b commit 9461ef8Copy full SHA for 9461ef8
doc/guides/using-symbols.md
@@ -14,7 +14,6 @@ https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Symbo
14
## `Symbol(string)`
15
16
Symbols created via `Symbol(string)` are local to the caller function.
17
-Note that `Symbol('hello') !== Symbol('hello')`.
18
For this reason, we often use them to simulate private fields, like so:
19
20
```js
@@ -31,8 +30,7 @@ class MyObject {
31
30
module.exports.MyObject = MyObject;
32
```
33
34
-Note that Symbols are not _fully private_, as the data could be accessed
35
-anyway:
+Symbols are not fully private, as the data could be accessed anyway:
36
37
38
for (const s of Object.getOwnPropertySymbols(obj)) {
0 commit comments