In FireFox, there is this cute little Error-Console [Ctrl+Shift+J] where I can add an error by throwing it from JavaScript. Is there a way to display a warning or a message, too? I dont mean console.warn(), i really want it in the error-console, i'd just prefer to have it a warning mark instead of an error marking.
Is there a way to accomplish this?
There is no such thing as a Warning in JavaScript. All errors are fatal.
console.warn will, in browsers that implement it, print a warning-level message in the console (similar to malformed HTML or security warnings).
Personally, I'd just write console.log("Warning: It's late and I'm drunk.");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With