Do all browsers support this? I would like to output an error using console.log() but was wondering if this supported by all browsers?
console.log()
console.
This code will check to see if the function exists and create a dummy in case it does not. Credit: StackOverflow
if (!window.console) window.console = {}; if (!window.console.log) window.console.log = function () { };