javascript push item by key name code example Example: javascript push array with key name arr["key"] = "value";