javascript array stackoverflow

JavaScript
var myArray = [];

var id = 12;
var value = 44;

myArray[id]=value;
Source

Also in JavaScript: