Difference between revisions of "Console.warn"

From FirebugWiki
Jump to: navigation, search
(Separate Console API page for console.warn())
m (Added categories)
(One intermediate revision by the same user not shown)
Line 22: Line 22:
* [[Console.info]]
* [[Console.info]]
* [[Console.error]]
* [[Console.error]]
* [[Console API]]

Latest revision as of 17:09, 21 November 2013

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


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



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.


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

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

See also[edit]