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>
pull/43805/head
Kohei Ueno 2022-06-06 22:28:48 +09:00 committed by GitHub
parent 797e41c9e5
commit 18a0eadeaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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.`,