I have an empty array and can an add to it like so:
test.theme = [
];
test.theme.default = ['blue','pink','orange'];
How can I hard code default in to the theme array instead of first declaring the array and then adding to it?
I've been trying
test.theme = [
default: ['blue','pink','orange']
]
Can't seem to get the right syntax.
test.theme.length==0. In second example is not valid syntax. Do you want an object?