1
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?

1
  • Can you point out how to fix it? Commented Jan 13, 2016 at 10:19

1 Answer 1

3

replace with " (double quotes)

this is correct version of your array

var a = [ [{text: ["##"]},{text: ["  "]}], [{text: ["  "]},{text: ["##"]}] ]
Sign up to request clarification or add additional context in comments.

3 Comments

@Sotra don't worry, it happens. Try jslint.com in future, it will help.
WOW THANKS for letting know about that!
Or use a plain text editor that uses the correct quote character. ;-)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.