Variable scope, what's wrong with it?
Can you please tell me what is the mistake? As I understand it, she doesn't have time to load.
Scope has nothing to do with it, the problem is asynchrony.
in obj, most likely a promise, respectively, all the rest of the code needs to be rewritten asynchronouslyAnonymous
To place the code, please use CodePen or similar tool. Thanks you!