2 ms·
As I said in another thread, always use console.log('message') and not alert('message'). Then for production you can always do this at the top of your main Jav
by junto 13y ago
As I said in another thread, always use console.log('message') and not alert('message').
Then for production you can always do this at the top of your main JavaScript include:
var console = {};
console.log = function(){};
- myke_cameron 13y agoI think a lot of people like using alert() for debugging because it posses execution. Of course, so do break-points / "debugger" statements. Git pre-commit hooks for alert are helpful since few and far between are the circumstances where an alert is actually wanted in production. While you're at it you can add one for whatever set of profane terms, if you roll like that.