Last Updated: February 25, 2016
·
397
· 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 () { } };