Skip to content

Question related to react/js/execution/es6 #834

@87sam12

Description

@87sam12

Lets consider the following screenshot:
image
image

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:
image
image
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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions