Suppose I have 2 arrays as follows:
let array1 = [1,2,3];
and let array2 = [5,6,7,8,9]
. How can I generate a new third array that specifically includes the elements from array2 located at the additional indexes (meaning the new array would exclusively have [8,9] since they are found at index 3 and 4).
Your help is much appreciated!