I have some more complicated strings than as follow but to put it simple, suppose I have
var stats_members = ",\{\"y\"\: 6\}";
var data =
[{
"x": "2012-11-05",
"y": 6
},+stats_members+
]
;
When I console.log(data)I keep on getting Uncaught SyntaxError: Unexpected token ] Could someone explain why ?
+(addition, concatenation) symbol with only one operand in your array declaration ?