--- title: Console.warn() slug: Web/API/Console/warn translation_of: Web/API/Console/warn ---
Ausgabe einer Warnmeldung in der Web-Konsole.
{{AvailableInWorkers}}
{{Note("In Firefox haben Warnungen in der Web-Console ein kleines Ausrufzeichen Symbol neben dem Meldungstext.")}}
console.warn(obj1 [, obj2, ..., objN]); console.warn(msg [, subst1, ..., substN]);
obj1
... objN
msg
subst1
... substN
msg
eingesetzt werden. Dadurch kann das Ausgabeformat der Meldung zusätzlich beeinflusst werden.Sie Textausgabe in der Konsole in der Dokumentation von {{domxref("console")}} für weitere Details.
Spezifikation | Status | Kommentar |
---|---|---|
{{SpecName("Console API", "#consolewarnobject--object-", "console.warn()")}} | {{Spec2("Console API")}} | Initial definition |
{{CompatibilityTable}}
Feature | Chrome | Edge | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|---|
Basic support | {{CompatVersionUnknown}} | {{CompatVersionUnknown}} | {{CompatGeckoDesktop("2.0")}} | 8 | {{CompatVersionUnknown}} | {{CompatVersionUnknown}} |
Substitution strings | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatGeckoDesktop("9.0")}} | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatUnknown}} |
Available in workers | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatGeckoDesktop("38.0")}} | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatUnknown}} |
Feature | Android | Edge | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|
Basic support | {{CompatUnknown}} | {{CompatVersionUnknown}} | {{CompatGeckoMobile("2.0")}} | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatUnknown}} |
Substitution strings | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatGeckoMobile("9.0")}} | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatUnknown}} |
Available in workers | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatGeckoMobile("38.0")}} | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatUnknown}} |