IE – Expected identifier, string or number

If you're getting this error, chances are you have an extra comma after a curly brace:

  a = {
            b: function() { },
            c: function() { }, }  

Get rid of the trailing comma and your JS error woes will disappear!

Leave a Reply

Your email address will not be published. Required fields are marked *