push values to array with keys javascript code example Example: javascript push array with key name arr["key"] = "value";