title: What is the purpose for multiple comma-separated expressions in a WHILE condition?
body: <p>I stumbled over the following JavaScript:</p>
  
  <p><strong>Code:</strong></p>
  
  <pre><code>var x="", i=0;
  while (i&lt;4, i&lt;7, i&lt;5, i&lt;6)
  {
    x=x + "The number is " + i + "&lt;br&gt;";
    i++;
  }
  document.write(x);
  </code></pre>
  
  <p>I never know that it is possible to use multiple comma-separated expression in one <code>WHILE</code> statement.</p>
  
  <p><strong>Result:</strong></p>
  
  <pre><code>The number is 0
  The number is 1
  The number is 2
  The number is 3
  The number is 4
  The number is 5
  </code></pre>
  
  <p>What is the reason for this and what is the behavior (only the last expression is evaluated for the while-exit)?</p>
  
  <p>Is the behavior standardize in all <code>Javascript/C/Java</code> languages?</p>