Our volunteers haven't translated this article into Ελληνικά yet. Join us and help get the job done!
You can also read the article in English (US).


SyntaxError: missing ] after element list

Error type


What went wrong?

There is an error with the array initializer syntax somewhere. Likely there is a closing bracket ("]") or a comma (",") missing.


Incomplete array initializer

var list = [1, 2,

var instruments = [

var data = [{foo: 'bar'} {bar: 'foo'}];

Correct would be:

var list = [1, 2];

var instruments = [

var data = [{foo: 'bar'}, {bar: 'foo'}];

See also

Εθελοντές και ετικέτες εγγράφου

Συνεισφέροντες σε αυτή τη σελίδα: nmve, fscholz
Τελευταία ενημέρωση από: nmve,