Console.log()

Niestandardowy

This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.

Wy艣wietla tekst w konsoli.

Note: This feature is available in Web Workers (en-US)

Syntax

console.log(obj1 [, obj2, ..., objN]);
console.log(msg [, subst1, ..., substN]);

Parameters

obj1 ... objN
Lista obiekt贸w JavaScript do wy艣wielenia. Podane obiekty s膮 kolejno do艂膮czane i przekazywane na wyj艣cie.
msg
String JavaScript zawieraj膮cy zero lub wi臋cej string贸w podmieniaj膮cych.
subst1 ... substN
Obiekt JavaScript w kt贸rym zast臋powane s膮 stringi podmieniaj膮ce z msg.  Daje Ci to dodatkow膮 kontrol臋 nad formatem.

Zobacz r贸wnie偶 Outputting text to the console w dokumentacji console.

Specifications

Specyfikacja Status Komentarz
Console API
The definition of 'console.log()' in that specification.
Living Standard Pocz膮tkowa definicja

Browser compatibility

No compatibility data found for api.Console.log.
Check for problems with this page or contribute missing data to mdn/browser-compat-data.

 

 

Zobacz r贸wnie偶