I was wondering, how can i find out with javascript if the console object is available?
i have the problem that if i forget to remove a debug output
try{ console.log("test") } catch(e){ console={}, console.log=function(a){} }
just put it at the top of your JS file and then use console.log(); without any worry for browser error, i also had this error in IE9