From d6f5c055aab804e87367ab9633fb1e9a23c6e053 Mon Sep 17 00:00:00 2001 From: Filipe Moraes Date: Tue, 23 Nov 2021 22:52:43 -0300 Subject: Fix Typos (#3190) * fix: typos * fix: another typo --- .../javascript/reference/global_objects/date/setutcmonth/index.html | 2 +- .../javascript/reference/global_objects/date/toisostring/index.html | 4 ++-- .../web/javascript/reference/global_objects/date/tosource/index.html | 2 +- .../web/javascript/reference/global_objects/date/tostring/index.html | 2 +- .../web/javascript/reference/global_objects/math/acos/index.html | 2 +- .../web/javascript/reference/global_objects/math/log1p/index.html | 2 +- .../javascript/reference/global_objects/number/isinteger/index.html | 2 +- .../reference/global_objects/object/defineproperty/index.html | 2 +- .../reference/global_objects/object/tolocalestring/index.html | 2 +- .../javascript/reference/global_objects/object/tosource/index.html | 2 +- .../pt-br/web/javascript/reference/global_objects/reflect/index.html | 2 +- .../web/javascript/reference/global_objects/undefined/index.html | 2 +- .../web/javascript/reference/global_objects/weakmap/delete/index.html | 4 ++-- .../web/javascript/reference/global_objects/weakmap/get/index.html | 2 +- files/pt-br/web/javascript/reference/operators/class/index.html | 4 ++-- .../reference/operators/destructuring_assignment/index.html | 2 +- .../pt-br/web/javascript/reference/statements/import.meta/index.html | 2 +- 17 files changed, 20 insertions(+), 20 deletions(-) (limited to 'files/pt-br/web/javascript/reference') diff --git a/files/pt-br/web/javascript/reference/global_objects/date/setutcmonth/index.html b/files/pt-br/web/javascript/reference/global_objects/date/setutcmonth/index.html index 2a6e9d9b6f..7a5a8991a0 100644 --- a/files/pt-br/web/javascript/reference/global_objects/date/setutcmonth/index.html +++ b/files/pt-br/web/javascript/reference/global_objects/date/setutcmonth/index.html @@ -39,7 +39,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Date/setUTCMonth

Descrição

-

Se você não especificar o parâmetro dayValue, o valor returnado do método {{jsxref("Date.prototype.getUTCDate()", "getUTCDate()")}} é utilizado.

+

Se você não especificar o parâmetro dayValue, o valor retornado do método {{jsxref("Date.prototype.getUTCDate()", "getUTCDate()")}} é utilizado.

Se um parâmetro que você especificou está fora do alcance especificado, setUTCMonth() tentará atualizar a informação da data no objeto {{jsxref("Date")}}. Por exemplo, se você usar 15 para monthValue, o ano irá incrementar em 1, e 3 será usado para o mês.

diff --git a/files/pt-br/web/javascript/reference/global_objects/date/toisostring/index.html b/files/pt-br/web/javascript/reference/global_objects/date/toisostring/index.html index 08334e9268..92decfc752 100644 --- a/files/pt-br/web/javascript/reference/global_objects/date/toisostring/index.html +++ b/files/pt-br/web/javascript/reference/global_objects/date/toisostring/index.html @@ -15,7 +15,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Date/toISOString ---
{{JSRef}}
-

O método toISOString() retorna uma cadeia de caracteres (string) simplificada no formato ISO extendido (ISO 8601), que é sempre 24 ou 27 caracteres de tamanho (YYYY-MM-DDTHH:mm:ss.sssZ ou ±YYYYYY-MM-DDTHH:mm:ss.sssZ, respectivamente). O fuso horário é sempre o deslocamente zero UTC, como denotado pelo sufixo "Z".

+

O método toISOString() retorna uma cadeia de caracteres (string) simplificada no formato ISO extendido (ISO 8601), que é sempre 24 ou 27 caracteres de tamanho (YYYY-MM-DDTHH:mm:ss.sssZ ou ±YYYYYY-MM-DDTHH:mm:ss.sssZ, respectivamente). O fuso horário é sempre o deslocamento zero UTC, como denotado pelo sufixo "Z".

{{EmbedInteractiveExample("pages/js/date-toisostring.html")}}
@@ -64,7 +64,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Date/toISOString
let today = new Date('05 October 2011 14:48 UTC')
 
-console.log(today.toISOString())  // Returna 2011-10-05T14:48:00.000Z
+console.log(today.toISOString())  // Retorna 2011-10-05T14:48:00.000Z
 

O exemplo acima usa uma conversão de uma string não-padrão que pode não ser convertida corretamente em navegadores que não sejam da Mozilla..

diff --git a/files/pt-br/web/javascript/reference/global_objects/date/tosource/index.html b/files/pt-br/web/javascript/reference/global_objects/date/tosource/index.html index 946bfa5c0f..c08c5b00de 100644 --- a/files/pt-br/web/javascript/reference/global_objects/date/tosource/index.html +++ b/files/pt-br/web/javascript/reference/global_objects/date/tosource/index.html @@ -29,7 +29,7 @@ Date.toSource()

Função nativa

-

Para o objeto {{jsxref("Date")}} embutido, toSource() returna a seguinte string indicando que o código fonte não está disponível:

+

Para o objeto {{jsxref("Date")}} embutido, toSource() retorna a seguinte string indicando que o código fonte não está disponível:

function Date() {
     [native code]
diff --git a/files/pt-br/web/javascript/reference/global_objects/date/tostring/index.html b/files/pt-br/web/javascript/reference/global_objects/date/tostring/index.html
index 4ad224a22d..8e3e449aeb 100644
--- a/files/pt-br/web/javascript/reference/global_objects/date/tostring/index.html
+++ b/files/pt-br/web/javascript/reference/global_objects/date/tostring/index.html
@@ -30,7 +30,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Date/toString
 
 

Descrição

-

Instâncias de {{jsxref("Date")}} herdam o método toString() de {{jsxref("Date.prototype")}}, não {{jsxref("Object.prototype")}}. Date.prototype.toString() returna uma string com a representação de Date no formato especificado na ECMA-262 que pode ser resumida como:

+

Instâncias de {{jsxref("Date")}} herdam o método toString() de {{jsxref("Date.prototype")}}, não {{jsxref("Object.prototype")}}. Date.prototype.toString() retorna uma string com a representação de Date no formato especificado na ECMA-262 que pode ser resumida como:

-

Neste exemplo, um getter sempre returna o mesmo valor.

+

Neste exemplo, um getter sempre retorna o mesmo valor.

var pattern = {
     get: function () {
diff --git a/files/pt-br/web/javascript/reference/global_objects/object/tolocalestring/index.html b/files/pt-br/web/javascript/reference/global_objects/object/tolocalestring/index.html
index e38ec0d8a2..d186c6c9ac 100644
--- a/files/pt-br/web/javascript/reference/global_objects/object/tolocalestring/index.html
+++ b/files/pt-br/web/javascript/reference/global_objects/object/tolocalestring/index.html
@@ -30,7 +30,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Object/toLocaleString
 
 

Descrição

-

toLocaleString do {{jsxref("Object")}} returna o resultado da chamada {{jsxref("Object.toString", "toString()")}}.

+

toLocaleString do {{jsxref("Object")}} retorna o resultado da chamada {{jsxref("Object.toString", "toString()")}}.

Esta função é provida para dar aos objetos um método toLocaleString genérico, mesmo que nem todos os usem. Veja a lista abaixo.

diff --git a/files/pt-br/web/javascript/reference/global_objects/object/tosource/index.html b/files/pt-br/web/javascript/reference/global_objects/object/tosource/index.html index 5e13a8eb4d..faa522f294 100644 --- a/files/pt-br/web/javascript/reference/global_objects/object/tosource/index.html +++ b/files/pt-br/web/javascript/reference/global_objects/object/tosource/index.html @@ -40,7 +40,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Object/toSource }
-
  • Para instâncias de {{jsxref("Object")}}, toSource() returna a string representando o código fonte.
  • +
  • Para instâncias de {{jsxref("Object")}}, toSource() retorna a string representando o código fonte.
  • Você pode chamar toSource() enquanto debuga para examinar os conteúdos de um objeto.

    diff --git a/files/pt-br/web/javascript/reference/global_objects/reflect/index.html b/files/pt-br/web/javascript/reference/global_objects/reflect/index.html index 0a47fd3cad..48a3263b5e 100644 --- a/files/pt-br/web/javascript/reference/global_objects/reflect/index.html +++ b/files/pt-br/web/javascript/reference/global_objects/reflect/index.html @@ -42,7 +42,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Reflect
    {{jsxref("Reflect.has()", "Reflect.has(target, propertyKey)")}}
    O operador in como função. Retorna um {{jsxref("Boolean")}} indicando se existe uma propriedade própria ou herdada.
    {{jsxref("Reflect.isExtensible()", "Reflect.isExtensible(target)")}}
    -
    Igual ao {{jsxref("Object.isExtensible()")}}. Returna um {{jsxref("Boolean")}} com o valor true se o destino (parâmetro target) for extensível.
    +
    Igual ao {{jsxref("Object.isExtensible()")}}. Retorna um {{jsxref("Boolean")}} com o valor true se o destino (parâmetro target) for extensível.
    {{jsxref("Reflect.ownKeys()", "Reflect.ownKeys(target)")}}
    Retorna uma matriz das chaves de propriedade do próprio objeto de destino (não herdadas).
    {{jsxref("Reflect.preventExtensions()", "Reflect.preventExtensions(target)")}}
    diff --git a/files/pt-br/web/javascript/reference/global_objects/undefined/index.html b/files/pt-br/web/javascript/reference/global_objects/undefined/index.html index aaad218628..0deb2f19a1 100644 --- a/files/pt-br/web/javascript/reference/global_objects/undefined/index.html +++ b/files/pt-br/web/javascript/reference/global_objects/undefined/index.html @@ -67,7 +67,7 @@ if (typeof x === 'undefined') {

    Uma das principais razões para usar o {{jsxref("Operators/typeof", "typeof")}} é que ele não lança erros caso a variável não tenha sido inicializada.

    // x não foi atribuída anteriormente
    -if (typeof x === 'undefined') { // returna verdadeiro sem lançar erros
    +if (typeof x === 'undefined') { // retorna verdadeiro sem lançar erros
        // esse código executa
     }
     
    diff --git a/files/pt-br/web/javascript/reference/global_objects/weakmap/delete/index.html b/files/pt-br/web/javascript/reference/global_objects/weakmap/delete/index.html
    index 17b52ae8ce..d9e5adfc55 100644
    --- a/files/pt-br/web/javascript/reference/global_objects/weakmap/delete/index.html
    +++ b/files/pt-br/web/javascript/reference/global_objects/weakmap/delete/index.html
    @@ -33,9 +33,9 @@ translation_of: Web/JavaScript/Reference/Global_Objects/WeakMap/delete
     
    var wm = new WeakMap();
     wm.set(window, 'foo');
     
    -console.log(wm.delete(window)); // Returna true. Removido com sucesso.
    +console.log(wm.delete(window)); // Retorna true. Removido com sucesso.
     
    -wm.has(window);    // Returna false. O objeto window não é mais pertecente ao WeakMap.
    +wm.has(window);    // Retorna false. O objeto window não é mais pertecente ao WeakMap.
     

    Especificações

    diff --git a/files/pt-br/web/javascript/reference/global_objects/weakmap/get/index.html b/files/pt-br/web/javascript/reference/global_objects/weakmap/get/index.html index f163f4a781..5d5729df1f 100644 --- a/files/pt-br/web/javascript/reference/global_objects/weakmap/get/index.html +++ b/files/pt-br/web/javascript/reference/global_objects/weakmap/get/index.html @@ -34,7 +34,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/WeakMap/get wm.set(window, 'foo'); wm.get(window); // Retorna "foo". -wm.get('baz'); // Returna undefined. +wm.get('baz'); // Retorna undefined.

    Especificações

    diff --git a/files/pt-br/web/javascript/reference/operators/class/index.html b/files/pt-br/web/javascript/reference/operators/class/index.html index e3ab255c4a..f4d14852b3 100644 --- a/files/pt-br/web/javascript/reference/operators/class/index.html +++ b/files/pt-br/web/javascript/reference/operators/class/index.html @@ -32,8 +32,8 @@ translation_of: Web/JavaScript/Reference/Operators/class var Foo = class {}; // propriedade de construtor é opcional var Foo = class {}; // Re-declaração é permitida -typeof Foo; //returna "function" -typeof class {}; //returna "function" +typeof Foo; //retorna "function" +typeof class {}; //retorna "function" Foo instanceof Object; // true Foo instanceof Function; // true diff --git a/files/pt-br/web/javascript/reference/operators/destructuring_assignment/index.html b/files/pt-br/web/javascript/reference/operators/destructuring_assignment/index.html index 2b45f9ee47..7a75d8630e 100644 --- a/files/pt-br/web/javascript/reference/operators/destructuring_assignment/index.html +++ b/files/pt-br/web/javascript/reference/operators/destructuring_assignment/index.html @@ -96,7 +96,7 @@ console.log(b); // 1

    Sempre foi possível retornar uma matriz de uma função. A desestruturação pode tornar mais conciso o trabalho com um valor de retorno do tipo array.

    -

    Neste exemplo, f() returna os valores [1, 2] como saída, que podem ser analisados em uma única linha com desestruturação.

    +

    Neste exemplo, f() retorna os valores [1, 2] como saída, que podem ser analisados em uma única linha com desestruturação.

    function f() {
       return [1, 2];
    diff --git a/files/pt-br/web/javascript/reference/statements/import.meta/index.html b/files/pt-br/web/javascript/reference/statements/import.meta/index.html
    index 4ea794e82f..a4aa163a7c 100644
    --- a/files/pt-br/web/javascript/reference/statements/import.meta/index.html
    +++ b/files/pt-br/web/javascript/reference/statements/import.meta/index.html
    @@ -30,7 +30,7 @@ translation_of: Web/JavaScript/Reference/Statements/import.meta
     
     
    console.log(import.meta); // { url: "file:///home/user/my-module.js" }
    -

    Irá returnar um objeto com propriedade URL indicando a base URL do módulo. Isso vai ser o URL da qual o script obteve, por scripts external, ou a base do documento URL contendo documento, para scripts inline.

    +

    Irá retornar um objeto com propriedade URL indicando a base URL do módulo. Isso vai ser o URL da qual o script obteve, por scripts external, ou a base do documento URL contendo documento, para scripts inline.

    Note que isso irá incluir parâmetros query e/ou cerquilha (i.e., seguindo o ? ou #).

    -- cgit v1.2.3-54-g00ecf