Solving JavaScript Error ‘expected identifier, string or number’ in IE This one was a pain... I use Hoptoad's javascript error notifier and kept getting "Expected identifier, string or number". Trouble was, neither Chrome, Safari nor Firefox was reporting any errors. Here's a simplified scenario to show what's happening here: var myObject = { functionOne = function(){ //do something }, attribute: 1, another_attribute: 2, } You see the trailing comma at the end of "another_attribute" - that's what's causing the issue. Chrome, Safari and Firefox are smart enough to know we've come to the end of the object when it hits the closed bracket, IE isn't. Remove it and problem solved.