title: to remove first and last element in array
body: <p>How to remove first and last element in an array?</p>
  
  <p>For example:</p>
  
  <pre><code>var fruits = ["Banana", "Orange", "Apple", "Mango"];
  </code></pre>
  
  <p>Expected output array:</p>
  
  <pre><code>["Orange", "Apple"]
  </code></pre>