Skip to main content
Version: 3.28.0

console.warn()

The console.warn() method outputs a warning message to the console.

Syntax

warn(obj1)
warn(obj1, /* …, */ objN)

Parameters

  • obj1objN
    • : A list of JavaScript objects to output. The string representations of each of these objects are appended together in the order listed and output.

Return value

None undefined.