title: How to get two smallest numbers in jQuery?
body: <p>I want to get 2 smallest numbers out of 3 numbers and then want to display that 2 smallest numbers on the screen simply like in PHP we use simply echo to display the value on the screen. But with this code I get only one smallest value need to get and display 2 smallest values on the web page.</p>
  
  <pre><code>&lt;script  type="text/javascript"&gt;
    var a = 5;
    var b = 4;
    var c = 6;
    var d = Math.min(a,b,c);
  &lt;/script&gt;
  </code></pre>
  
  <p>so the result should be "First smallest: 4" and "second smallest: 5"</p>
  
  <p>Put these first &amp; second lowest values in different variables like var first = 4 &amp; var second = 5 and then should display like with PHP code <code>&lt;?php echo $first;?&gt;</code> and <code>&lt;?php echo $second ; ?&gt;</code>.</p>