Does await guarantee execution order without assignment in JavaScript? : <p>Subject. Can I say that two pieces of code below are equal:</p>

<pre><code>await someFunc() // no assignment here
doSomethingAfterSomeFunc()
</code></pre>

<p>and:</p>

<pre><code>someFunc().then(() =&gt; 
  doSomethingAfterSomeFunc()
)
</code></pre>

<p>I tried and it looks like they are equal but there is a doubt(e.g. some optimization)</p>
