Console.warn() Method

The console.warn() method is used for printing warning messages to the console, and to the Log.txt file.

Syntax

console.warn(message)

Parameters

Return value

No value is returned.

Example

> console.warn("Hello, world!")
Hello, world!

References