Created
March 29, 2020 09:19
-
-
Save whoiskai/d60fe1acd74890292659f3711ba76f59 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// 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