Skip to content

Instantly share code, notes, and snippets.

@stefandobre
Last active February 10, 2021 08:40
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 stefandobre/4243616a69e94bc470d2201c3cc4ca2f to your computer and use it in GitHub Desktop.
Save stefandobre/4243616a69e94bc470d2201c3cc4ca2f to your computer and use it in GitHub Desktop.
console.log(variable1); // error: variable1 is not defined
console.log(globalThis.variable1); // undefined
console.log(globalThis.variable2); // 200
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment