how to pick from an array depending on a certain number : <p>Lets say you use indexOf on an array to find all cases that say apple. If it comes back with three cases at positons 1, 2 and 3. </p>

<p>Now lets say there is an array = [10, 20, 30 ,40 ,50 ,60 ,70 ,80 ,90 ,100]</p>

<p>is there a way to use them cases 1,2 and 3 which come to 6. So is there a a way to go to position 6 "70" and produce that number. Depending on what the indexOf provides, is there a way to select that number from the array. Also if the indexOF produced 3.5 would there be a way to get 35 aka position 3.5.</p>
