What array method adds a new element at a specified index without reassignment?

From a question in this quiz, If myArray[3] = "thisitem" is used to reassign thisitem to the index of myArray[3], What method can be used to simply add thisitem to the array without reassignment or completely removing the myArray[3] element?

You can always push() but that adds a new item at the end.

It’s unclear as to what you might want:

  • set myArray[3] to a new value and place the old value at the end of a list
  • set myArray[3] to a new value and displace all the old values to its right by one.

Either way, they’re doable! Consider using loops.