-
-
Save ACbosong/b6ed9c5d3fdf2ee2cea755abad06a553 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
v1 = "global" | |
var v2 = "var" | |
Object.getOwnPropertyDescriptor(globalThis, "v1") | |
// Object { value: "global", writable: true, enumerable: true, configurable: true } | |
Object.getOwnPropertyDescriptor(globalThis, "v2") | |
// Object { value: "var", writable: true, enumerable: true, configurable: false } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment