The index position of the element starts from 0. The specified index position is 2. So, it deleted the 3rd array element.
Go to Tutorialdeep Homepage