title: How do I get the second largest element from an array in javascript
body: <p>I have an integer array like this :</p>
  
  <pre><code>arr[20,120,111,215,54,78];
  </code></pre>
  
  <p>I need a function taking an array as its argument and returning the second largest element of that array.</p>