17
I have this substitute for console.log defined in document.ready():
$(document).ready(function(){
console.log("doc ready");
if(typeof console === "undefined"){
console = { log: function() { } };
}
}
I thought IE was supposed to have this function available but, when I include the call above
console.log("doc ready");
the output appears in the Firefox console but not in IE - in fact IE script execution breaks completely at this point.
What's the correct way to write to the console in IE?