Console.warn

From FirebugWiki
Revision as of 16:09, 21 November 2013 by Sebastianz (Talk | contribs) (Added categories)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Writes a message to the console with the visual "warning" icon and yellow background and a hyperlink to the line where it was called.

Syntax[edit]

console.warn(object[, object, ...])

Parameters[edit]

object[edit]

Object to output in the console. This can be any kind of object. The first argument to log may be a string containing printf-like string substitution patterns. The complete list of patterns can be seen at console.log.

Examples[edit]

console.warn("This is some warning message.");

This prints Warning.png This is some warning message. to the console.

See also[edit]