Reputation: 189
var row = [ [{text: [“##”]},{text: [“ ”]}], [{text: [“ ”]},{text: [“##”]}] ];
The editor showed an error:
"SyntaxError: Unexpected token ILLEGAL"
What's wrong? Why can't I create an array like this?
Upvotes: 1
Views: 37
Reputation: 68413
replace “
with "
(double quotes)
this is correct version of your array
var a = [ [{text: ["##"]},{text: [" "]}], [{text: [" "]},{text: ["##"]}] ]
Upvotes: 3