How to compare one sorted descending array and one unsorted array in javascript and unsorted array elements location in the sorted one.
so if the number of elements is 7 in sorted array
[100,90,80,70,60,50,40]
and number of elements in unsorted array is 4 unsorted array is
[200,10,55,65]
then the output will be
1
8
6
5
1 8 6 5?