We're looking for a person or people to help audit MDN to find places we could speed up. Is this you or someone you know? Check out the RFP: https://mzl.la/2IHcMiE

Our volunteers haven't translated this article into Bahasa Indonesia 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

Tag Dokumen dan Kontributor

 Kontributor untuk laman ini: nmve, fscholz
 Terakhir diperbarui oleh: nmve,