I have a bunch of console.log() calls in my JavaScript.
Should I comment them out before I deploy to production?
I\'d like to just leave them th
You should at least create a dummy console.log if the object doesn't exist so your code won't throw errors on users' machines without firebug installed.
Another possibility would be to trigger logging only in 'debug mode', ie if a certain flag is set:
if(_debug) console.log('foo');
_debug && console.log('foo');