Strings from index in array - Javascript : <p>If I have an array of strings:</p>

<pre><code>array1 = ['mango', 'orange', 'apple','strawberry'];
</code></pre>

<p>and one array of indexes:</p>

<pre><code>array2 = [1,3];
</code></pre>

<p>How can I create a new array with the strings in array1, based on the indexes in array2?</p>

<p>The new array would in this case look like this:</p>

<pre><code>array3 = [orange, strawberry]
</code></pre>
