I\'m using Firebug and have some statements like:
console.log(\"...\");
in my page. In IE8 (probably earlier versions too) I get script err
Another alternative is the typeof operator:
typeof
if (typeof console == "undefined") { this.console = {log: function() {}}; }
Yet another alternative is to use a logging library, such as my own log4javascript.