Specify Array Index

Is there a way I could specify the index of a array using this short code:


var myArray = new Array("teste");

How would I go about giving a custom index name instead of it being myArray[0]? I could do it the long way like posted below, but I was wondering the there was a way to shorten this:


var myArray = new Array();
myArray[myCustomIndex] = "testing";

Cheers!