-
-
Couldn't load subscription status.
- Fork 30.9k
Closed
Description
Lets consider the following screenshot:


Even after the control reaches the let assignment statement, the previous imports are undefined. Could anyone explain why is that so?
Also the following shows that the bundled internal variables are defined though:


Why does this behavior exist in javascript? Is this expected or something different.
Its in mozilla firefox browser (95.0.1)
As far as I know as javascript is a synchronous language except the specific functionalities like promises, async/await, I guess everything else must be synchronous by its design, which is why this unpredictability in its behavior is confusing.
Metadata
Metadata
Assignees
Labels
No labels