Subject. Can I say that two pieces of code below are equal:
await someFunc() // no assignment here
I tried and it looks like they are equal but there is a doubt(e.g. some optimization)
Yes they are exactly the same, it’s more or less syntactic sugar. The await causes execution to pause until the awaited
Promise is resolved.