Can you select several sub items in an array with [ ]?
<p>Say for example I have an array :</p>

<pre><code>[ "car", "fish", "javascript", "Star Wars" ]
</code></pre>

<p>And I want to select the first three in this array, but not <code>"Star Wars"</code>.</p>

<p>Can I do that by using brackets somehow? Like in Rails I could this by :</p>

<pre><code>array[0..2]
</code></pre>

<p>Is there something similar in javascript?</p>
