aboutsummaryrefslogtreecommitdiff
path: root/files/pt-br
diff options
context:
space:
mode:
Diffstat (limited to 'files/pt-br')
-rw-r--r--files/pt-br/web/api/url/searchparams/index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/files/pt-br/web/api/url/searchparams/index.html b/files/pt-br/web/api/url/searchparams/index.html
index 48d5af7416..70e6756f85 100644
--- a/files/pt-br/web/api/url/searchparams/index.html
+++ b/files/pt-br/web/api/url/searchparams/index.html
@@ -19,7 +19,7 @@ translation_of: Web/API/URL/searchParams
<p>Se a URL da sua página é <code>https://example.com/?name=Jonathan&amp;age=18</code> você pode parsear os parametros 'name' e 'age' usando:</p>
-<pre class="default prettyprint prettyprinted notranslate">let params = (new URL(document.location)).searchParams;
+<pre class="default prettyprint prettyprinted notranslate brush: js">let params = (new URL(document.location)).searchParams;
let name = params.get("name"); // é a string "Jonathan"
let age = parseInt(params.get("age")); // é o número 18</pre>