Skip to content

Tag: warnings

Display yellow warning message in console

I want to show a warning message in the Chrome console, like the highlighted item in this screenshot: console.log(message) displays a normal white message. console.error(message) creates an error message. But using console.warning(message) returns Uncaught TypeError: console.warning is not a function. So is t…