4
LLAMS
7y

Just use a promise that sets this variable, and then you can use the variable as long as its after the promise declaration.
No, just no. Thats not now asynchronous code works.

Comments
  • 2
    Omg! I feel your pain
  • 3
    😂 That person probably tested this theory with "Promise.resolve('foo')" or something like that.
Add Comment