aboutsummaryrefslogtreecommitdiff
path: root/files/pt-br/web/api/console/clear/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/pt-br/web/api/console/clear/index.html')
-rw-r--r--files/pt-br/web/api/console/clear/index.html38
1 files changed, 38 insertions, 0 deletions
diff --git a/files/pt-br/web/api/console/clear/index.html b/files/pt-br/web/api/console/clear/index.html
new file mode 100644
index 0000000000..f7ae8df40f
--- /dev/null
+++ b/files/pt-br/web/api/console/clear/index.html
@@ -0,0 +1,38 @@
+---
+title: console.clear()
+slug: Web/API/Console/clear
+translation_of: Web/API/Console/clear
+---
+<div>{{APIRef("Console API")}}</div>
+
+<p>O método <strong><code>console.clear()</code></strong> limpa o console, se o ambiente permitir.</p>
+
+<h2 id="Sintaxe">Sintaxe</h2>
+
+<pre class="syntaxbox">console.clear();
+</pre>
+
+<h2 id="Especificações">Especificações</h2>
+
+<table class="standard-table">
+ <thead>
+ <tr>
+ <th scope="col">Specification</th>
+ <th scope="col">Status</th>
+ <th scope="col">Comment</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>{{SpecName("Console API", "#clear", "console.clear()")}}</td>
+ <td>{{Spec2("Console API")}}</td>
+ <td>Initial definition</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="Compatibilidade_de_Browser">Compatibilidade de Browser</h2>
+
+<div class="hidden">A tabela de compatibilidade nesta página é gerada a partir de dados estruturados. Se você deseja contribuir com os dados, consulte <a href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> e envie-nos uma pull request.</div>
+
+<p>{{Compat("api.Console.clear")}}</p>