title: Confused about the use of slice in javascript
body: <p>I just started learning Javascript. One of the exercises is using slice. My understanding is that slice creates a shallow copy of an array, and that shallow copy, will contain elements from the original array, as called.</p>
  <pre><code>var fruits = [&quot;Banana&quot;, &quot;Orange&quot;, &quot;Lemon&quot;, &quot;Apple&quot;, &quot;Mango&quot;];
  var citrus = fruits.slice(1, 3);
  console.log(citrus);
  </code></pre>
  <p>And I get:</p>
  <pre><code>Orange, Lemon
  </code></pre>
  <p>fruits[1] is Orange
  fruits[3] is Apple</p>
  <p>I am expecting</p>
  <pre><code>Orange, Apple
  </code></pre>
  <p>What am I missing?</p>