aboutsummaryrefslogtreecommitdiff
path: root/files/it/web/api/console
diff options
context:
space:
mode:
authorRyan Johnson <rjohnson@mozilla.com>2021-04-29 16:16:42 -0700
committerGitHub <noreply@github.com>2021-04-29 16:16:42 -0700
commit95aca4b4d8fa62815d4bd412fff1a364f842814a (patch)
tree5e57661720fe9058d5c7db637e764800b50f9060 /files/it/web/api/console
parentee3b1c87e3c8e72ca130943eed260ad642246581 (diff)
downloadtranslated-content-95aca4b4d8fa62815d4bd412fff1a364f842814a.tar.gz
translated-content-95aca4b4d8fa62815d4bd412fff1a364f842814a.tar.bz2
translated-content-95aca4b4d8fa62815d4bd412fff1a364f842814a.zip
remove retired locales (#699)
Diffstat (limited to 'files/it/web/api/console')
-rw-r--r--files/it/web/api/console/index.html294
-rw-r--r--files/it/web/api/console/log/index.html88
-rw-r--r--files/it/web/api/console/table/index.html143
3 files changed, 0 insertions, 525 deletions
diff --git a/files/it/web/api/console/index.html b/files/it/web/api/console/index.html
deleted file mode 100644
index 61521af0f3..0000000000
--- a/files/it/web/api/console/index.html
+++ /dev/null
@@ -1,294 +0,0 @@
----
-title: Console
-slug: Web/API/Console
-tags:
- - API
- - Debugging
- - Interface
- - NeedsTranslation
- - Reference
- - TopicStub
- - console
- - web console
-translation_of: Web/API/Console
----
-<div>{{APIRef("Console API")}}</div>
-
-<p>The <strong><code>Console</code></strong> object provides access to the browser's debugging console (e.g. the <a href="/en-US/docs/Tools/Web_Console">Web Console</a> in Firefox). The specifics of how it works varies from browser to browser, but there is a <em>de facto</em> set of features that are typically provided.</p>
-
-<p>The <code>Console</code> object can be accessed from any global object. {{domxref("Window")}} on browsing scopes and {{domxref("WorkerGlobalScope")}} as specific variants in workers via the property console. It's exposed as {{domxref("Window.console")}}, and can be referenced as simply <code>console</code>. For example:</p>
-
-<pre class="brush: js">console.log("Failed to open the specified link")</pre>
-
-<p>This page documents the {{anch("Methods")}} available on the <code>Console</code> object and gives a few {{anch("Usage")}} examples.</p>
-
-<p>{{AvailableInWorkers}}</p>
-
-<h2 id="Methods">Methods</h2>
-
-<dl>
- <dt>{{domxref("Console.assert()")}}</dt>
- <dd>Log a message and stack trace to console if the first argument is <code>false</code>.</dd>
- <dt>{{domxref("Console.clear()")}}</dt>
- <dd>Clear the console.</dd>
- <dt>{{domxref("Console.count()")}}</dt>
- <dd>Log the number of times this line has been called with the given label.</dd>
- <dt>{{domxref("Console.countReset()")}}</dt>
- <dd>Resets the value of the counter with the given label.</dd>
- <dt>{{domxref("Console.debug()")}}</dt>
- <dd>Outputs a message to the console with the log level <code>"debug"</code>.
- <div class="note"><strong>Note</strong>: Starting with Chromium 58 this method only appears in Chromium browser consoles when level "Verbose" is selected.</div>
- </dd>
- <dt>{{domxref("Console.dir()")}}</dt>
- <dd>Displays an interactive listing of the properties of a specified JavaScript object. This listing lets you use disclosure triangles to examine the contents of child objects.</dd>
- <dt>{{domxref("Console.dirxml()")}}</dt>
- <dd>
- <p>Displays an XML/HTML Element representation of the specified object if possible or the JavaScript Object view if it is not possible.</p>
- </dd>
- <dt>{{domxref("Console.error()")}}</dt>
- <dd>Outputs an error message. You may use <a href="/en-US/docs/Web/API/console#Using_string_substitutions">string substitution</a> and additional arguments with this method.</dd>
- <dt>{{domxref("Console.exception()")}} {{Non-standard_inline}} {{deprecated_inline}}</dt>
- <dd>An alias for <code>error()</code>.</dd>
- <dt>{{domxref("Console.group()")}}</dt>
- <dd>Creates a new inline <a href="/en-US/docs/Web/API/console#Using_groups_in_the_console">group</a>, indenting all following output by another level. To move back out a level, call <code>groupEnd()</code>.</dd>
- <dt>{{domxref("Console.groupCollapsed()")}}</dt>
- <dd>Creates a new inline <a href="/en-US/docs/Web/API/console#Using_groups_in_the_console">group</a>, indenting all following output by another level. However, unlike <code>group()</code> this starts with the inline group collapsed requiring the use of a disclosure button to expand it. To move back out a level, call <code>groupEnd()</code>.</dd>
- <dt>{{domxref("Console.groupEnd()")}}</dt>
- <dd>Exits the current inline <a href="/en-US/docs/Web/API/console#Using_groups_in_the_console">group</a>.</dd>
- <dt>{{domxref("Console.info()")}}</dt>
- <dd>Informative logging of information. You may use <a href="/en-US/docs/Web/API/console#Using_string_substitutions">string substitution</a> and additional arguments with this method.</dd>
- <dt>{{domxref("Console.log()")}}</dt>
- <dd>For general output of logging information. You may use <a href="/en-US/docs/Web/API/console#Using_string_substitutions">string substitution</a> and additional arguments with this method.</dd>
- <dt>{{domxref("Console.profile()")}} {{Non-standard_inline}}</dt>
- <dd>Starts the browser's built-in profiler (for example, the <a href="/en-US/docs/Tools/Performance">Firefox performance tool</a>). You can specify an optional name for the profile.</dd>
- <dt>{{domxref("Console.profileEnd()")}} {{Non-standard_inline}}</dt>
- <dd>Stops the profiler. You can see the resulting profile in the browser's performance tool (for example, the <a href="/en-US/docs/Tools/Performance">Firefox performance tool</a>).</dd>
- <dt>{{domxref("Console.table()")}}</dt>
- <dd>Displays tabular data as a table.</dd>
- <dt>{{domxref("Console.time()")}}</dt>
- <dd>Starts a <a href="/en-US/docs/Web/API/console#Timers">timer</a> with a name specified as an input parameter. Up to 10,000 simultaneous timers can run on a given page.</dd>
- <dt>{{domxref("Console.timeEnd()")}}</dt>
- <dd>Stops the specified <a href="/en-US/docs/Web/API/console#Timers">timer</a> and logs the elapsed time in seconds since it started.</dd>
- <dt>{{domxref("Console.timeLog()")}}</dt>
- <dd>Logs the value of the specified <a href="/en-US/docs/Web/API/console#Timers">timer</a> to the console.</dd>
- <dt>{{domxref("Console.timeStamp()")}} {{Non-standard_inline}}</dt>
- <dd>Adds a marker to the browser's <a href="https://developer.chrome.com/devtools/docs/timeline">Timeline</a> or <a href="/en-US/docs/Tools/Performance/Waterfall">Waterfall</a> tool.</dd>
- <dt>{{domxref("Console.trace()")}}</dt>
- <dd>Outputs a <a href="/en-US/docs/Web/API/console#Stack_traces">stack trace</a>.</dd>
- <dt>{{domxref("Console.warn()")}}</dt>
- <dd>Outputs a warning message. You may use <a href="/en-US/docs/Web/API/console#Using_string_substitutions">string substitution</a> and additional arguments with this method.</dd>
-</dl>
-
-<h2 id="Usage" name="Usage">Usage</h2>
-
-<h3 id="Outputting_text_to_the_console" name="Outputting_text_to_the_console">Outputting text to the console</h3>
-
-<p>The most frequently-used feature of the console is logging of text and other data. There are four categories of output you can generate, using the {{domxref("console.log()")}}, {{domxref("console.info()")}}, {{domxref("console.warn()")}}, and {{domxref("console.error()")}} methods respectively. Each of these results in output styled differently in the log, and you can use the filtering controls provided by your browser to only view the kinds of output that interest you.</p>
-
-<p>There are two ways to use each of the output methods; you can simply pass in a list of objects whose string representations get concatenated into one string, then output to the console, or you can pass in a string containing zero or more substitution strings followed by a list of objects to replace them.</p>
-
-<h4 id="Outputting_a_single_object">Outputting a single object</h4>
-
-<p>The simplest way to use the logging methods is to output a single object:</p>
-
-<pre class="brush: js">var someObject = { str: "Some text", id: 5 };
-console.log(someObject);
-</pre>
-
-<p>The output looks something like this:</p>
-
-<pre>[09:27:13.475] ({str:"Some text", id:5})</pre>
-
-<h4 id="Outputting_multiple_objects">Outputting multiple objects</h4>
-
-<p>You can also output multiple objects by simply listing them when calling the logging method, like this:</p>
-
-<pre class="brush: js">var car = "Dodge Charger";
-var someObject = { str: "Some text", id: 5 };
-console.info("My first car was a", car, ". The object is:", someObject);</pre>
-
-<p>This output will look like this:</p>
-
-<pre>[09:28:22.711] My first car was a Dodge Charger . The object is: ({str:"Some text", id:5})
-</pre>
-
-<h4 id="Using_string_substitutions">Using string substitutions</h4>
-
-<p>Gecko 9.0 {{geckoRelease("9.0")}} introduced support for string substitutions. When passing a string to one of the console object's methods that accepts a string, you may use these substitution strings:</p>
-
-<table class="standard-table" style="width: auto;">
- <tbody>
- <tr>
- <td class="header">Substitution string</td>
- <td class="header">Description</td>
- </tr>
- <tr>
- <td>%o or %O</td>
- <td>Outputs a JavaScript object. Clicking the object name opens more information about it in the inspector.</td>
- </tr>
- <tr>
- <td>%d or %i</td>
- <td>Outputs an integer. Number formatting is supported, for example  <code>console.log("Foo %.2d", 1.1)</code> will output the number as two significant figures with a leading 0: <code>Foo 01</code></td>
- </tr>
- <tr>
- <td>%s</td>
- <td>Outputs a string.</td>
- </tr>
- <tr>
- <td>%f</td>
- <td>Outputs a floating-point value. Formatting is supported, for example  <code>console.log("Foo %.2f", 1.1)</code> will output the number to 2 decimal places: <code>Foo 1.10</code></td>
- </tr>
- </tbody>
-</table>
-
-<div class="note">
-<p><strong>Note</strong>: Precision formatting doesn't work in Chrome</p>
-</div>
-
-<p>Each of these pulls the next argument after the format string off the parameter list. For example:</p>
-
-<pre>for (var i=0; i&lt;5; i++) {
-  console.log("Hello, %s. You've called me %d times.", "Bob", i+1);
-}
-</pre>
-
-<p>The output looks like this:</p>
-
-<pre>[13:14:13.481] Hello, Bob. You've called me 1 times.
-[13:14:13.483] Hello, Bob. You've called me 2 times.
-[13:14:13.485] Hello, Bob. You've called me 3 times.
-[13:14:13.487] Hello, Bob. You've called me 4 times.
-[13:14:13.488] Hello, Bob. You've called me 5 times.
-</pre>
-
-<h4 id="Styling_console_output">Styling console output</h4>
-
-<p>You can use the <code>%c</code> directive to apply a CSS style to console output:</p>
-
-<pre class="brush: js">console.log("This is %cMy stylish message", "color: yellow; font-style: italic; background-color: blue;padding: 2px");</pre>
-
-<div>The text before the directive will not be affected, but the text after the directive will be styled using the CSS declarations in the parameter.</div>
-
-<div> </div>
-
-<div><img alt="" src="https://mdn.mozillademos.org/files/12527/CSS-styling.png" style="display: block; margin: 0 auto;"></div>
-
-<div> </div>
-
-<div class="note">
-<p><strong>Note</strong>: Quite a few CSS properties are supported by this styling; you should experiment and see which ones prove useful.</p>
-</div>
-
-<div> </div>
-
-<div>{{h3_gecko_minversion("Using groups in the console", "9.0")}}</div>
-
-<p>You can use nested groups to help organize your output by visually combining related material. To create a new nested block, call <code>console.group()</code>. The <code>console.groupCollapsed()</code> method is similar but creates the new block collapsed, requiring the use of a disclosure button to open it for reading.</p>
-
-<div class="note"><strong>Note:</strong> Collapsed groups are not supported yet in Gecko; the <code>groupCollapsed()</code> method is the same as <code>group()</code> at this time.</div>
-
-<p>To exit the current group, simply call <code>console.groupEnd()</code>. For example, given this code:</p>
-
-<pre class="brush: js">console.log("This is the outer level");
-console.group();
-console.log("Level 2");
-console.group();
-console.log("Level 3");
-console.warn("More of level 3");
-console.groupEnd();
-console.log("Back to level 2");
-console.groupEnd();
-console.debug("Back to the outer level");
-</pre>
-
-<p>The output looks like this:</p>
-
-<p><img alt="nesting.png" class="default internal" src="/@api/deki/files/6082/=nesting.png"></p>
-
-<div>{{h3_gecko_minversion("Timers", "10.0")}}</div>
-
-<p>In order to calculate the duration of a specific operation, Gecko 10 introduced the support of timers in the <code>console</code> object. To start a timer, call the <code>console.time</code><code>()</code> method, giving it a name as the only parameter. To stop the timer, and to get the elapsed time in milliseconds, just call the <code>console.timeEnd()</code> method, again passing the timer's name as the parameter. Up to 10,000 timers can run simultaneously on a given page.</p>
-
-<p>For example, given this code:</p>
-
-<pre class="brush: js">console.time("answer time");
-alert("Click to continue");
-console.timeLog("answer time");
-alert("Do a bunch of other stuff...");
-console.timeEnd("answer time");
-</pre>
-
-<p>Will log the time needed by the user to dismiss the alert box, log the time to the console, wait for the user to dismiss the second alert, and then log the ending time to the console:</p>
-
-<p><img alt="timerresult.png" class="default internal" src="https://mdn.mozillademos.org/files/16113/console-timeLog.png" style="border: 1px solid black; height: 102px; margin: 0 auto; width: 318px;"></p>
-
-<p>Notice that the timer's name is displayed both when the timer is started and when it's stopped.</p>
-
-<div class="note"><strong>Note:</strong> It's important to note that if you're using this to log the timing for network traffic, the timer will report the total time for the transaction, while the time listed in the network panel is just the amount of time required for the header. If you have response body logging enabled, the time listed for the response header and body combined should match what you see in the console output.</div>
-
-<h3 id="Stack_traces">Stack traces</h3>
-
-<p>The console object also supports outputting a stack trace; this will show you the call path taken to reach the point at which you call {{domxref("console.trace()")}}. Given code like this:</p>
-
-<pre class="brush: js">function foo() {
-  function bar() {
-    console.trace();
-  }
-  bar();
-}
-
-foo();
-</pre>
-
-<p>The output in the console looks something like this:</p>
-
-<p><img alt="" src="https://mdn.mozillademos.org/files/7167/api-trace2.png" style="display: block; margin-left: auto; margin-right: auto;"></p>
-
-<h2 id="Specifications">Specifications</h2>
-
-<table class="standard-table">
- <tbody>
- <tr>
- <th scope="col">Specification</th>
- <th scope="col">Status</th>
- <th scope="col">Comment</th>
- </tr>
- <tr>
- <td>{{SpecName('Console API')}}</td>
- <td>{{Spec2('Console API')}}</td>
- <td>Initial definition.</td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="Browser_compatibility">Browser compatibility</h2>
-
-
-
-<p>{{Compat("api.Console")}}</p>
-
-<h2 id="Notes">Notes</h2>
-
-<ul>
- <li>At least in Firefox, if a page defines a <code>console</code> object, that object overrides the one built into Firefox.</li>
- <li>Prior to {{Gecko("12.0")}}, the console object's methods only work when the Web Console is open. Starting with {{Gecko("12.0")}}, output is cached until the Web Console is opened, then displayed at that time.</li>
- <li>It's worth noting that the Firefox's built-in <code>Console</code> object is compatible with the one provided by <a class="external" href="http://getfirebug.com/" title="http://getfirebug.com/">Firebug</a>.</li>
-</ul>
-
-<h2 id="See_also">See also</h2>
-
-<ul>
- <li><a href="/en-US/docs/Tools" title="Tools">Tools</a></li>
- <li><a href="/en-US/docs/Tools/Web_Console" title="Web Console">Web Console</a> — how the Web Console in Firefox handles console API calls</li>
- <li><a href="/en-US/docs/Tools/Remote_Debugging">Remote debugging</a> — how to see console output when the debugging target is a mobile device</li>
- <li><a href="/en-US/docs/Mozilla/Firefox_OS/Debugging/On-device_console_logging" title="/en-US/docs/Mozilla/Firefox_OS/Debugging/On-device_console_logging">On-device console logging</a> — how to do logging on Firefox OS devices</li>
-</ul>
-
-<h3 id="Other_implementations">Other implementations</h3>
-
-<ul>
- <li><a href="https://developers.google.com/chrome-developer-tools/docs/console-api">Google Chrome DevTools</a></li>
- <li><a href="http://getfirebug.com/wiki/index.php/Console_API">Firebug</a></li>
- <li><a href="http://msdn.microsoft.com/en-us/library/hh772173(v=vs.85).aspx">Internet Explorer</a></li>
- <li><a href="https://developer.apple.com/library/safari/documentation/AppleApplications/Conceptual/Safari_Developer_Guide/Console/Console.html">Safari</a></li>
-</ul>
diff --git a/files/it/web/api/console/log/index.html b/files/it/web/api/console/log/index.html
deleted file mode 100644
index 4229185824..0000000000
--- a/files/it/web/api/console/log/index.html
+++ /dev/null
@@ -1,88 +0,0 @@
----
-title: console.log()
-slug: Web/API/Console/log
-translation_of: Web/API/Console/log
----
-<div>{{APIRef("Console API")}}</div>
-
-<p><span class="seoSummary">Il metodo  <strong><code>log()</code></strong> di {{domxref("Console")}} stampa un messaggio sulla web console.</span> Il messaggio può essere una semplice stringa (opzionalmente, anche con valori sostituibili), o può essere uno qualsiasi o più oggetti JavaScript.</p>
-
-<p>{{AvailableInWorkers}}</p>
-
-<h2 id="Sintassi">Sintassi</h2>
-
-<pre class="syntaxbox">console.log(<em>obj1</em> [, <em>obj2</em>, ..., <em>objN</em>]);
-console.log(<em>msg</em> [, <em>subst1</em>, ..., <em>substN</em>]);
-</pre>
-
-<h3 id="Parametri">Parametri</h3>
-
-<dl>
- <dt><code>obj1</code> ... <code>objN</code></dt>
- <dd>Una lista di oggetti JavaScript da stampare. La rappresentazione sotto forma di stringa di ciascuno di questi oggetti sarà messa in coda nell'ordine presentato e stampata. Perfavore fai attenzione che se tu stampi degli oggetti nelle ultime versioni si Chrome e Firefox quello che otterrai sarà un <em>riferimento all'oggetto</em>, che non necessariamente è il 'valore' dell'oggetto nel momento della chiamata di <code>console.log()</code>, ma è il valore dell'oggetto al momento in cui tu apri la console.</dd>
- <dt><code>msg</code></dt>
- <dd>Una stringa JavaScript contenente zero o più stringhe da sostituire.</dd>
- <dt><code>subst1</code> ... <code>substN</code></dt>
- <dd>Oggetti JavaScript con i quali verranno sostituite le stringhe da sostituire in <code>msg</code>. Questo ti offre controlli aggiuntivi sul formato dell'output</dd>
-</dl>
-
-<p>Vedi <a href="/en-US/docs/DOM/console#Outputting_text_to_the_console">Stampare del testo sulla Console</a> nella documentazione di {{domxref("console")}} per maggiori dettagli.</p>
-
-<h2 id="Differenza_tra_log_e_dir">Differenza tra log() e dir()</h2>
-
-<p>Ti potresti esser chiesto qual è la differenza tra {{domxref("console.dir()")}} e <code>console.log()</code>.</p>
-
-<p>Un'altra utile differenza esiste in Chrome quando invii elementi DOM alla console.</p>
-
-<p><img alt="" src="https://i.imgur.com/DozDcYR.png"></p>
-
-<p>Nota bene:</p>
-
-<ul>
- <li><code>console.log</code> stampa gli elementi in un albero HTML-like.</li>
- <li><code>console.dir</code> stampa gli elementi in un albero JSON-like.</li>
-</ul>
-
-<p>Specificamente, <code>console.log</code> offre un trattamento speciale agli elementi del DOM, mentre <code>console.dir</code> non lo fa. Ė spesso utile quando si prova a vedere la rappresentazione completa degli oggetti JS del DOM.</p>
-
-<p>Ulteriori informazioni si possono trovare sulle <a href="https://developers.google.com/chrome-developer-tools/docs/console-api#consoledirobject">Chrome Console API reference</a> su questa e altre funzioni.</p>
-
-<h2 id="Registrare_loggare_gli_oggetti">Registrare (loggare) gli oggetti</h2>
-
-<p>Non usare <code>console.log(obj)</code>, usa <code>console.log(JSON.parse(JSON.stringify(obj)))</code>.</p>
-
-<p>In questo modo sarai sicuro di visulizzare il valore di <code>obj</code> al momento in cui lo stai registrando (loggando). Altrimenti, svariati browser offrono una vista live che aggiorna costantemente i valori non appena cambiano. Potrebbe non essere quel che cerchi.</p>
-
-<h2 id="Specifiche">Specifiche</h2>
-
-<table class="standard-table">
- <thead>
- <tr>
- <th scope="col">Specifiche</th>
- <th scope="col">Stato</th>
- <th scope="col">Commento</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>{{SpecName("Console API", "#log", "console.log()")}}</td>
- <td>{{Spec2("Console API")}}</td>
- <td>Definizione iniziale</td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="Compatibilità_con_i_browser">Compatibilità con i browser</h2>
-
-<div class="hidden">La tabella delle compatibilità su questa pagina è generata da dati strutturati. ISe volessi contribuire sui dati, perfavore visita <a href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> e inviaci una pull request.</div>
-
-<p>{{Compat("api.Console.log")}}</p>
-
-<h2 id="Vedi_anche">Vedi anche</h2>
-
-<ul>
- <li><a class="external" href="http://www.opera.com/dragonfly/documentation/console/">Documentazione Opera Dragonfly: Console</a></li>
- <li><a class="external" href="http://msdn.microsoft.com/library/gg589530">MSDN: Usare gli strumenti della Console F12 per vedere Errori e Stati</a></li>
- <li><a href="http://getfirebug.com/wiki/index.php/Console_API">Firebug wiki: Console API</a> - Firebug supporta features aggiuntive nella sua implementazione della console.log(), come il <a href="http://www.softwareishard.com/blog/firebug/firebug-tip-styled-logging/">logging con stile</a>.</li>
- <li><a href="http://nodejs.org/docs/latest/api/console.html#console_console_log_data">NodeJS: Console API</a></li>
-</ul>
diff --git a/files/it/web/api/console/table/index.html b/files/it/web/api/console/table/index.html
deleted file mode 100644
index d2ae5bbce2..0000000000
--- a/files/it/web/api/console/table/index.html
+++ /dev/null
@@ -1,143 +0,0 @@
----
-title: Console.table()
-slug: Web/API/Console/table
-translation_of: Web/API/Console/table
----
-<div> {{APIRef("Console API")}}</div>
-
-<p><span class="seoSummary">Visualizza dati tabulari come una tabella.</span></p>
-
-<p>Questa funzione richiede un argomento obbligatorio <code>data</code>, che deve essere un array di oggetti, ed un parametro opzionale <code>columns</code>.</p>
-
-<p>La funzione visualizza <code>data</code> come una tabella ed ogni elemento dell'array (o ogni sua proprietà numerabile se <code>data</code> è un oggetto) sarà una riga della tabella.</p>
-
-<p>La prima colonna della tabella rappresenta l'etichetta <code>(index)</code>. Se <code>data</code> è un array allora il valore sarà il suo indice nell'array. Se, invece, <code>data</code> è un oggetto, il suo valore sarà il nome della proprietà. Nota che (in Firefox) <code>console.table</code> limita a 1000 la visualizzazione delle righe (la prima riga contiene i nomi delle etichette).</p>
-
-<p>{{AvailableInWorkers}}</p>
-
-<h3 id="Collezioni_di_tipi_di_primitive">Collezioni di tipi di primitive</h3>
-
-<p>L'argomento <code>data</code> può essere un array o un oggetto.</p>
-
-<pre class="brush: js">// array di stringhe
-
-console.table(["apples", "oranges", "bananas"]);</pre>
-
-<p><img alt="" src="https://mdn.mozillademos.org/files/8567/console-table-array.png"></p>
-
-<pre class="brush: js">// un oggetto le cui proprietà sono stringhe
-
-function Person(firstName, lastName) {
-  this.firstName = firstName;
-  this.lastName = lastName;
-}
-
-var me = new Person("John", "Smith");
-
-console.table(me);</pre>
-
-<p><img alt="" src="https://mdn.mozillademos.org/files/8559/console-table-simple-object.png"></p>
-
-<h3 id="Collezioni_di_tipi_composti">Collezioni di tipi composti</h3>
-
-<p>Se l'elemento nell'array o le proprietà nell'oggetto sono a loro volta array o oggetti, allora i loro elementi o proprietà sono enumerati nella riga, uno per colonna:</p>
-
-<pre class="brush: js">// un array di arrays
-
-var people = [["John", "Smith"], ["Jane", "Doe"], ["Emily", "Jones"]]
-console.table(people);</pre>
-
-<p><img alt="Table displaying array of arrays" src="https://mdn.mozillademos.org/files/8561/console-table-array-of-array.png"></p>
-
-<pre class="brush: js">// un array di oggetti
-
-function Person(firstName, lastName) {
- this.firstName = firstName;
- this.lastName = lastName;
-}
-
-var john = new Person("John", "Smith");
-var jane = new Person("Jane", "Doe");
-var emily = new Person("Emily", "Jones");
-
-console.table([john, jane, emily]);</pre>
-
-<p>Nota che se l'array contiene oggetti, allora le colonne sono etichettate con il nome della proprietà.</p>
-
-<p><img alt="Table displaying array of objects" src="https://mdn.mozillademos.org/files/8563/console-table-array-of-objects.png"></p>
-
-<pre class="brush: js">// un oggetto le cui proprietà sono oggetti
-
-var family = {};
-
-family.mother = new Person("Jane", "Smith");
-family.father = new Person("John", "Smith");
-family.daughter = new Person("Emily", "Smith");
-
-console.table(family);</pre>
-
-<p><img alt="Table displaying object of objects" src="https://mdn.mozillademos.org/files/8565/console-table-object-of-objects.png"></p>
-
-<h3 id="Restringimento_delle_colonne_visualizzate">Restringimento delle colonne visualizzate</h3>
-
-<p>Di default, <code>console.table()</code> visualizza la lista di elementi in ogni riga. Puoi usare il parametro opzionale <code>columns</code> per selezionare un sottoinsieme delle colonne da visualizzare:</p>
-
-<pre class="brush: js">// un array di oggetti, visualizzando solo firstName
-
-function Person(firstName, lastName) {
- this.firstName = firstName;
- this.lastName = lastName;
-}
-
-var john = new Person("John", "Smith");
-var jane = new Person("Jane", "Doe");
-var emily = new Person("Emily", "Jones");
-
-console.table([john, jane, emily], ["firstName"]);</pre>
-
-<p><img alt="Table displaying array of objects with filtered output" src="https://mdn.mozillademos.org/files/8569/console-table-array-of-objects-firstName-only.png"></p>
-
-<h3 id="Ordinamento_delle_colonne">Ordinamento delle colonne</h3>
-
-<p>Puoi ordinare la tabella in base ad una particolare colonna cliccando sulla sua etichetta.</p>
-
-<h2 id="Sintassi">Sintassi</h2>
-
-<pre class="syntaxbox">console.table(data [, <em>columns</em>]);
-</pre>
-
-<h3 id="Parametri">Parametri</h3>
-
-<dl>
- <dt><code>data</code></dt>
- <dd>Il dato da visualizzare. Deve essere un oggetto o un array.</dd>
- <dt><code>columns</code></dt>
- <dd>Un array contenente i nomi delle colonne da includere nell'output.</dd>
-</dl>
-
-<h2 id="Specifiche">Specifiche</h2>
-
-<table class="standard-table">
- <thead>
- <tr>
- <th scope="col">Specifiche</th>
- <th scope="col">Stato</th>
- <th scope="col">Commenti</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>{{SpecName("Console API", "#table", "console.table()")}}</td>
- <td>{{Spec2("Console API")}}</td>
- <td>Initial definition</td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="Compatibilità_dei_browser">Compatibilità dei browser</h2>
-
-<div>
-
-
-<p>{{Compat("api.Console.table")}}</p>
-</div>