Skip to content

Instantly share code, notes, and snippets.

@whoiskai
Created March 29, 2020 09:19
Show Gist options
  • Save whoiskai/d60fe1acd74890292659f3711ba76f59 to your computer and use it in GitHub Desktop.
Save whoiskai/d60fe1acd74890292659f3711ba76f59 to your computer and use it in GitHub Desktop.
// Some global variable x
const x = 1
// Module A running concurrently
const foo = x + 1
print(x) // <- what is x here?
print(foo) // <- what is foo here?
// Module B running concurrently
const bar = x + 2
print(x) // <- what is x here?
print(bar) // <- what is bar here?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment