title: In JavaScript, does an if with multiple or's evaluate all statements before continuing?
body: <p>In Javascript, specifically Google's V8 engine, does writing multiple function calls in a list of or conditions '||' execute all of the functions before determining the final result of the if comparison?</p>
  
  <p>e.g.</p>
  
  <pre><code>var path = 'C:\\MyFiles\\file.doc';
  if (   path.match(/\.docx?/gi)
      || path.match(/\.xlsx?/gi)
      || path.match(/\.xml/gi)
      || path.match(/\.sql?/gi)) {
  
      // Success
  } else {
      // Failed
  }
  </code></pre>
  
  <p>So I would like to ask: Is this similar<sup>&dagger;</sup> to how the '&amp;&amp;' conditions work, but the opposite? Will the first condition evaluating to TRUE cause the remaining to be skipped and the Success logic to be executed?</p>
  
  <p>I cannot find this stated in any documentation that I am looking for. It is not like this will make a huge difference, however I am curious as to how this is actually executing.</p>
  
  <p><sup>&dagger;</sup>(By similar to the And '&amp;&amp;' I mean that the first condition evaluating to FALSE will stop the remaining conditions from executing and proceed to following else.)</p>