I\'m using Firebug and have some statements like:
console.log(\"...\");
in my page. In IE8 (probably earlier versions too) I get script err
In my scripts, I either use the shorthand:
window.console && console.log(...) // only log if the function exists
or, if it's not possible or feasible to edit every console.log line, I create a fake console:
// check to see if console exists. If not, create an empty object for it,
// then create and empty logging function which does nothing.
//
// REMEMBER: put this before any other console.log calls
!window.console && (window.console = {} && window.console.log = function () {});