I've got something like this:
var test={
arr : [1,2],
number : 5
}
(test.arr).push(3);
It says: "Uncaught TypeError: Cannot read property 'arr' of undefined "
.
So how can i push a number or string into 'test.arr'?
I've got something like this:
var test={
arr : [1,2],
number : 5
}
(test.arr).push(3);
It says: "Uncaught TypeError: Cannot read property 'arr' of undefined "
.
So how can i push a number or string into 'test.arr'?