As you can see below, the first console log statement gets printed. After that, the async function gets suspended, as the variable greeting is waiting to be resolved.
But during this time, the other statements ("in the global context", or to put in layman terms, outside the function) get executed. Thus, we see the next console log statement printed.
Finally, once the promise is resolved we see the Hello also printed.

That’s it for this one! We hope you've enjoyed learning about a critical advanced topic in JavaScript.
Before you leave, try answering the following questions to see if you have understood everything correctly.