mirror of
https://github.com/nodejs/node.git
synced 2026-10-28 18:25:13 +08:00
doc: make clear the result of comparison between Symbol.for
PR-URL: https://github.com/nodejs/node/pull/43309 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Akhil Marsonya <akhil.marsonya27@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>
This commit is contained in:
1 parent
797e41c9e5
commit
18a0eadeaa
1 file changed
+1
-1
@@ -61,7 +61,7 @@ for different reasons.
|
||||
|
||||
```js
|
||||
const s = Symbol.for('hello');
|
||||
console.log(s === Symbol.for('hello'));
|
||||
console.log(s === Symbol.for('hello')); // true
|
||||
```
|
||||
|
||||
In the Node.js runtime we prefix all our global symbols with `nodejs.`,
|
||||
|
||||
Reference in new issue
Block a user