title: select specific numbers out of array
body: <p>this might be a very basic question. But I would like to know how I can select specific elements out of an array.
  I have an array with <code>100</code> elements:</p>
  
  <pre><code>var cubes = [element1, element2, element3 ...]
  </code></pre>
  
  <p>and I would like to select lets say element <code>25-35</code>.</p>
  
  <p>I tried something like: </p>
  
  <p><code>cubes[25-35].somefunction();</code>
  or <code>cubes[25,26,27,28].somefunction();</code></p>
  
  <p>but both does not work. How to do it?</p>
  
  <p>Thanks</p>