For example i have an array
var array = [1, 2, 3, 4]
I want to remove item at index 1 then at index 3 \"let it be in a for loop\".
But
It's simple. delete items from the end.
First delete 3 and after that delete 1