diff --git a/locale/en/blog/community/foundation-benefits-all.md b/locale/en/blog/community/foundation-benefits-all.md index a9d20b7da975f..3ad957fcf23e7 100644 --- a/locale/en/blog/community/foundation-benefits-all.md +++ b/locale/en/blog/community/foundation-benefits-all.md @@ -40,7 +40,7 @@ Reunification of the Node.js developer community remains an important goal of the Foundation. But to have a successful project, we must also maintain focus on addressing the concerns of Node.js users and the ecosystem of vendors. If we succeed, Node.js will continue its meteoric rise as the defacto server side -javascript platform, and everyone wins. If we get it wrong, we jeapordize the +JavaScript platform, and everyone wins. If we get it wrong, we jeapordize the momentum and critical mass that's driven that growth, and everyone loses. In the user community, enterprise adoption of Node.js has skyrocketed with an diff --git a/locale/en/knowledge/getting-started/what-is-require.md b/locale/en/knowledge/getting-started/what-is-require.md index 7bf4797d98f5d..6fa9f31df0924 100644 --- a/locale/en/knowledge/getting-started/what-is-require.md +++ b/locale/en/knowledge/getting-started/what-is-require.md @@ -10,7 +10,7 @@ difficulty: 1 layout: knowledge-post.hbs --- - Node.js follows the CommonJS module system, and the builtin `require` function is the easiest way to include modules that exist in separate files. The basic functionality of `require` is that it reads a javascript file, executes the file, and then proceeds to return the `exports` object. An example module: + Node.js follows the CommonJS module system, and the builtin `require` function is the easiest way to include modules that exist in separate files. The basic functionality of `require` is that it reads a JavaScript file, executes the file, and then proceeds to return the `exports` object. An example module: ```javascript console.log("evaluating example.js"); diff --git a/locale/en/knowledge/javascript-conventions/what-is-json.md b/locale/en/knowledge/javascript-conventions/what-is-json.md index 98c4230b6f406..bc65817b88ed3 100644 --- a/locale/en/knowledge/javascript-conventions/what-is-json.md +++ b/locale/en/knowledge/javascript-conventions/what-is-json.md @@ -25,10 +25,10 @@ values, e.g. an Object. ## Encoding and Decoding JavaScript provides 2 methods for encoding data structures to json and -encoding json back to javascript objects and arrays. They are both +encoding json back to JavaScript objects and arrays. They are both available on the `JSON` object that is available in the global scope. -`JSON.stringify` takes a javascript object or array and returns a +`JSON.stringify` takes a JavaScript object or array and returns a serialized string in the JSON format. ```js @@ -45,7 +45,7 @@ console.log(jsonStr); // prints '{"name":"John Doe","age":32,"title":"Vice President of JavaScript"}' ``` -`JSON.parse` takes a JSON string and decodes it to a javascript data +`JSON.parse` takes a JSON string and decodes it to a JavaScript data structure. ```js @@ -118,7 +118,7 @@ try/catch block. Notice that the only complex values allowed in JSON are objects and arrays. Functions, dates and other types are excluded. This may not seem to make sense at first. But remember that JSON is a data format, -not a format for transferring complex javascript objects along with +not a format for transferring complex JavaScript objects along with their functionality. ## JSON Validators @@ -131,8 +131,8 @@ As JSON has become the most widely used data formate with well-defined rules to ## JSON in other languages -Although JSON was inspired by the simplicity of javascript data -structures, it's use is not limited to the javascript language. Many +Although JSON was inspired by the simplicity of JavaScript data +structures, it's use is not limited to the JavaScript language. Many other languages have methods of transferring native hashes and lists into stringified JSON objects. Here's a quick example in ruby. diff --git a/locale/en/knowledge/javascript-conventions/what-is-the-arguments-object.md b/locale/en/knowledge/javascript-conventions/what-is-the-arguments-object.md index 5b29c2ba89427..ba390d5e20c8b 100644 --- a/locale/en/knowledge/javascript-conventions/what-is-the-arguments-object.md +++ b/locale/en/knowledge/javascript-conventions/what-is-the-arguments-object.md @@ -12,7 +12,7 @@ layout: knowledge-post.hbs The `arguments` object is a special construct available inside all function calls. It represents the list of arguments that were passed -in when invoking the function. Since javascript allows functions to be +in when invoking the function. Since JavaScript allows functions to be called with any number args, we need a way to dynamically discover and access them. @@ -33,7 +33,7 @@ const myfunc = function(one) { myfunc(1, 2, 3); ``` -This construct is very useful and gives javascript functions a lot of +This construct is very useful and gives JavaScript functions a lot of flexibility. But there is an important gotcha. The `arguments` object behaves like an array, but it is not an actual array. It does not have Array in its prototype chain and it does not respond to any array diff --git a/locale/pt-br/knowledge/getting-started/what-is-require.md b/locale/pt-br/knowledge/getting-started/what-is-require.md index f78b79b128fc8..6807fa4c1b321 100644 --- a/locale/pt-br/knowledge/getting-started/what-is-require.md +++ b/locale/pt-br/knowledge/getting-started/what-is-require.md @@ -10,7 +10,7 @@ difficulty: 1 layout: knowledge-post.hbs --- -O Node.js segue o sistema de módulos CommomJS, e a função nativa `require` é a forma mais fácil de incluir módulos que existem em arquivos separados. A funcionalidade básica do `require` é que ele lê um arquivo javascript, executa o arquivo e então retorna o objeto `exports`. Um exemplo de módulo: +O Node.js segue o sistema de módulos CommomJS, e a função nativa `require` é a forma mais fácil de incluir módulos que existem em arquivos separados. A funcionalidade básica do `require` é que ele lê um arquivo JavaScript, executa o arquivo e então retorna o objeto `exports`. Um exemplo de módulo: ```javascript console.log("evaluating example.js"); diff --git a/locale/pt-br/knowledge/javascript-conventions/what-is-json.md b/locale/pt-br/knowledge/javascript-conventions/what-is-json.md index 5f829d7e9b19d..8293e1b006fb5 100644 --- a/locale/pt-br/knowledge/javascript-conventions/what-is-json.md +++ b/locale/pt-br/knowledge/javascript-conventions/what-is-json.md @@ -25,11 +25,11 @@ Objeto. ## Codificação e Decodificação O JavaScript fornece 2 métodos. Um para codificar estrutura de dados para JSON -e o outro para decodificar JSON para objetos e arrays javascript. +e o outro para decodificar JSON para objetos e arrays JavaScript. Ambos estão disponíveis no objeto `JSON` que existe no escopo global. -`JSON.stringify` recebe um objeto ou um array javascript e retorna uma string +`JSON.stringify` recebe um objeto ou um array JavaScript e retorna uma string serializada no formato JSON. ```js @@ -46,7 +46,7 @@ console.log(jsonStr); // imprime '{"nome":"John Doe","idade":32,"titulo":"Vice Presidente do JavaScript"}' ``` -`JSON.parse` recebe uma string JSON e decodifica para um dado javascript +`JSON.parse` recebe uma string JSON e decodifica para um dado JavaScript estruturado. ```js @@ -127,7 +127,7 @@ você pode antecipar os erros encapsulando a chamada em um bloco try/catch. Observe que os únicos valores complexos permitidos em JSON são objetos e arrays. Funções, datas e outros tipos são excluídos. Isso pode não parecer fazer sentido no começo. Mas lembre-se que o JSON é um formato de dados, -não um formato para transferir objetos javascript complexos junto com +não um formato para transferir objetos JavaScript complexos junto com sua funcionalidade. ## Validadores JSON @@ -143,7 +143,7 @@ Como o JSON se tornou o formato de dados mais amplamente usado, com regras bem d ## JSON em outras linguagens Embora o JSON tenha sido inspirado pela simplicidade dos dados estruturados do -javascript, o seu uso não se limita à linguagem javascript. Muitas +JavaScript, o seu uso não se limita à linguagem JavaScript. Muitas outras linguagens têm métodos de transferência de hashes e listas nativas em objetos JSON stringificados. Aqui está um exemplo rápido em ruby.