whatsthecodeforthat.com

What's the code for Array Indexing in javascript?

var val = arr[0];
arr[0] = val;