warn

abstract fun warn(vararg data: JsAny?)(source)

The console.warn() static method outputs a warning message to the console at the "warning" log level. The message is only displayed to the user if the console is configured to display warning output. In most cases, the log level is configured within the console UI. The message may receive special formatting, such as yellow colors and a warning icon.

MDN Reference


abstract fun warn(vararg data: String?)(source)