I was working on a Node script, and suddenly I got errors when accessing this array:
var a = [
["foo", "bar"],
["ham", "eggs"]
["yin", "yang"]
];
Obviously, my error was the missing comma after the second element of the array. But why the script compiles without syntax errors? In Node:
> ["ham", "eggs"] ["yin", "yang"];
undefined