1// Copy the first two array elements to the last two array elements:
2const fruits = ["Banana", "Orange", "Apple", "Mango"];
3fruits.copyWithin(2, 0);
1copyWithin(target); //target where to copy the sequence to
2copyWithin(target, start); //copy to index target all elems at index start to end
3copyWithin(target, start, end); //copy to index of target elem at index of start