Skip to content

Instantly share code, notes, and snippets.

@CodHeK
Last active June 9, 2020 06:13
Show Gist options
  • Save CodHeK/5cab54eecd51d606af3bb55d171a9b11 to your computer and use it in GitHub Desktop.
Save CodHeK/5cab54eecd51d606af3bb55d171a9b11 to your computer and use it in GitHub Desktop.
let dummy1 = 10;
console.log(window.dummy1) // undefined
const dummy2 = 10;
console.log(window.dummy2) // undefined
const f = () => {
console.log("THIS DOESN'T WORK"); // TypeError: window.f is not a function
}
window.f();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment