Skip to content

Commit

Permalink
Correct "JavaScript" case (#2659)
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR authored and Trott committed Oct 11, 2019
1 parent 65cf795 commit 1011be5
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion locale/en/blog/community/foundation-benefits-all.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion locale/en/knowledge/getting-started/what-is-require.md
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
12 changes: 6 additions & 6 deletions locale/en/knowledge/javascript-conventions/what-is-json.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion locale/pt-br/knowledge/getting-started/what-is-require.md
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
10 changes: 5 additions & 5 deletions locale/pt-br/knowledge/javascript-conventions/what-is-json.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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.

Expand Down

0 comments on commit 1011be5

Please sign in to comment.