From FirebugWiki

(Difference between revisions)
Jump to: navigation, search
m (Added Console API to "See also" section)
m (Added categories)
Line 23: Line 23:
* [[Console.error]]
* [[Console.error]]
* [[Console API]]
* [[Console API]]

Latest revision as of 00:09, 22 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.


[edit] Syntax

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

[edit] Parameters

[edit] 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.

[edit] Examples

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

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

[edit] See also

Personal tools