Skip to content

Instantly share code, notes, and snippets.

@sayrer
Created December 19, 2021 20:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sayrer/2a386a40ef0a607077a4dbd2f8c9a714 to your computer and use it in GitHub Desktop.
Save sayrer/2a386a40ef0a607077a4dbd2f8c9a714 to your computer and use it in GitHub Desktop.
sayrer@sayrers-MacBook-Air% node
Welcome to Node.js v17.2.0.
Type ".help" for more information.
> Object.freeze(Object.prototype);
[Object: null prototype] {}
> Object.freeze({}.constructor);
[Function: Object]
> {}.constructor.foo = "bar"
'bar'
> {}.constructor
[Function: Object]
> {}.constructor.foo
undefined
> {}.__proto__.baz = "qux"
'qux'
> {}.__proto__
[Object: null prototype] {}
> {}.__proto__.baz
undefined
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment