Last Updated: February 25, 2016
·
385
· gianttoast

IE and the Javascript Console

Internet Explorer doesn't have a console object defined on window unless the developer tools are being used. The solution:

if (!window.console) console = { log: function () { } };