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.log("Error etc");
No, not all browsers support console.log as it is not part of the standard and is an extension of the DOM and thus you should not count on its presence. To make your code resilient you should assume it does not exist and code accordingly.
console.log
1.4m articles
1.4m replys
5 comments
57.0k users