The console.error() static method outputs a message to the console at the 'error' log level.
console.error()
MDN Reference