Will use of the debugging feature console.log reduce JavaScript execution performance? Will it affect the speed of script execution in production environments?
If you create a shortcut to the console in a common core script, eg:
var con = console;
and then use con.log("message") or con.error("error message") throughout your code, on production you can simply rewire con in the core location to:
var con = {
log: function() {},
error: function() {},
debug: function() {}
}