javascript push array with key name

JavaScript
arr["key"] = "value";
Source

Also in JavaScript: