That&#x27;s valid javascript, and it would produce what you expect, with or without the ending semicolon.<p>Here is an example: <a href="http:&#x2F;&#x2F;jsbin.com&#x2F;mokipigeqa&#x2F;edit?html,js,console" rel="nofollow">http:&#x2F;&#x2F;jsbin.com&#x2F;mokipigeqa&#x2F;edit?html,js,console</a><p>Here are the ASI-relevant parts of the ES5 standard: <a href="http:&#x2F;&#x2F;es5.github.io&#x2F;#x7.9" rel="nofollow">http:&#x2F;&#x2F;es5.github.io&#x2F;#x7.9</a><p>In JavaScript, LineTerminators are used as a separator between tokens, just like other whitespace is. Therefore:<p><pre><code>  list .map() .filter() 
</code></pre>
is equivalent to<p><pre><code>  list
  .map()
  .filter()</code></pre>