It is not possible to have both a value and an array within the same item.
To address this, consider using an object instead of an array. This way, you can utilize named properties instead of numeric indices.
You can nest objects within objects by setting them as properties:
var mmo = {};
mmo["name"] = {};
mmo["name"]["x"] = "20";
mmo["name"]["y"] = "40";
If you prefer to use an array within an object, you would assign values using numeric indices:
var mmo = {};
mmo["name"] = [];
mmo["name"][0] = "20";
mmo["name"][1] = "40";
In case you need to use an array within another array, all elements will be indexed numerically:
var mmo = [];
mmo[0] = [];
mmo[0][0] = "20";
mmo[0][1] = "40";
While it's technically possible to use an array and include properties within it, this approach can lead to confusion due to mixed data types.