1)array.splice(1,2) - This method remove and insert an element of array. This method remove the element from an array index  and .
Finally the document. write print the list of element that an array object hold after delete an element from the element of an array.
Ask your questions, our development team will try to give answers to your questions.