Fixing JavaScript errors in IE
Saturday, June 23rd, 2007
I spent about 2 hours this evening trying to track down the problem causing obscure “Expected identifier, string or number” errors. It turns out that it was caused by having a comma after the last element of a list, e.g.
1
2
3
4
5
6
7
var list = {
foo: "bar",
bar: "foo",
};
Removing the [...]