Is there any way to turn off all console.log statements in my JavaScript code, for testing purposes?
console.log
If you're using IE7, console won't be defined. So a more IE friendly version would be:
if (typeof console == "undefined" || typeof console.log == "undefined") { var console = { log: function() {} }; }