-2

Error Message

I'm getting an Uncaught SyntaxError: Unexpected string error, yet when I look at the source, as far as I can tell, it's correct. I can't see any missing commas or quotation marks. Any one have any tips?

(yes, I've searched to see if I can find the problem, but it always seems to be quotation marks and commas)

Thanks

deceze
  • 510,633
  • 85
  • 743
  • 889
theweirdone
  • 21
  • 1
  • 2

2 Answers2

2

You need to add a pair of square brackets to contain the entries

For example,

let StandardsData = [
    {
        // stuff
    },
    {
        // stuff
    },
    {
        // stuff
    },
]
Charlie
  • 530
  • 10
  • 26
0

You missed to close between [ ] that array

LordRasta
  • 15
  • 4