This post will cover why you should never leave console.log in your html coding.
I use console.log when I use FireBug. I didn’t realize how amazing the program is for troubleshooting until I started using it on a daily bases. With it you can quietly tell the browser what the variable values are etc. Internet Explorer however does not like console.log unless you are using FireBug Lite (a javascript version of FireBug).
If you are getting weird results on your page and you know you used console.log to troubleshoot them, go through the html code and look for console.log. You might just find that the problem happens because you left a line in your code.
Here’s an example where I left console.log in the code and the effect ended up failing in Internet Explorer.
Leave a Reply