title: Strange Javascript Feature: (5,2) == 2
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/6927685/the-purpose-of-the-comma-operator-in-javascript-x-x1-x2-xn">The purpose of the comma operator in javascript (x, x1, x2, …, xn) </a>  </p>
  </blockquote>
  
  
  
  <p>In Javascript <code>(5, 2)</code> gives <code>2</code>, <code>('a', 'b', 'c')</code> gives <code>'c'</code> etc. (just try it out in the console).</p>
  
  <p>My questions concerning that:</p>
  
  <ul>
  <li>Is there a reason for that "feature"?</li>
  <li>In which cases may it be useful?</li>
  </ul>