3 ms·if (window.console) console.log(...);by maxanger 16y agoif (window.console) console.log(...);jackowayed 16y agoThat really should be built in to console.log.mitjak 16y agoI may not be entirely sober yet but I believe the problem at hand is what happens when window.console isn't defined at all.ydant 16y agoIt can be, but only if console.log is defined in your source code. It isn't when you use Firebug, so it won't be when you're not using Firebug.