Skip to content

Commit 8869056

Browse files
committed
merging all conflicts
2 parents 56a9e45 + 4541b7a commit 8869056

File tree

36 files changed

+118
-59
lines changed

36 files changed

+118
-59
lines changed

1-js/01-getting-started/1-intro/article.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,11 @@ Por exemplo, o JavaScript no navegador é capaz de:
5959

6060
## O que o JavaScript no navegador não pode fazer?
6161

62+
<<<<<<< HEAD
6263
As habilidades do JavaScript no navegador são limitadas por uma questão de segurança do usuário. O objetivo é evitar que uma página maléfica acesse informações privadas ou prejudique os dados do usuário.
64+
=======
65+
JavaScript's abilities in the browser are limited for the sake of a user's safety. The aim is to prevent an evil webpage from accessing private information or harming the user's data.
66+
>>>>>>> 4541b7af7584014a676da731f6e8774da5e059f6
6367
6468
Exemplos de tais restrições incluem:
6569

@@ -84,9 +88,15 @@ Esses limites não existem se o JavaScript for usado fora do navegador, por exem
8488
Há pelo menos *três* grandes aspectos do JavaScript:
8589

8690
```compare
91+
<<<<<<< HEAD
8792
+ Integração total com HTML/CSS.
8893
+ Coisas simples são feitas de forma simples.
8994
+ Suporte para todos os principais navegadores e ativado por padrão.
95+
=======
96+
+ Full integration with HTML/CSS.
97+
+ Simple things are done simply.
98+
+ Supported by all major browsers and enabled by default.
99+
>>>>>>> 4541b7af7584014a676da731f6e8774da5e059f6
90100
```
91101
JavaScript é a única tecnologia de navegador que combina estas três qualidades.
92102

@@ -117,6 +127,12 @@ Há mais. Claro que, mesmo que usemos uma dessas linguagens transpiladas, també
117127

118128
## Resumo
119129

130+
<<<<<<< HEAD
120131
- O JavaScript foi inicialmente criado como uma linguagem somente de navegador, mas agora é usado em muitos outros ambientes também.
121132
- Hoje, o JavaScript tem uma posição única como a linguagem de navegador mais amplamente adotada, com integração total com HTML/CSS.
122133
- Existem muitas linguagens que são "transpiladas" para JavaScript e que oferecem certas funcionalidades. Recomenda-se dar uma olhada nelas, pelo menos brevemente, depois de dominar o JavaScript.
134+
=======
135+
- JavaScript was initially created as a browser-only language, but it is now used in many other environments as well.
136+
- Today, JavaScript has a unique position as the most widely-adopted browser language, fully integrated with HTML/CSS.
137+
- There are many languages that get "transpiled" to JavaScript and provide certain features. It is recommended to take a look at them, at least briefly, after mastering JavaScript.
138+
>>>>>>> 4541b7af7584014a676da731f6e8774da5e059f6

1-js/02-first-steps/01-hello-world/article.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,11 @@ Os arquivos de script são anexados ao HTML com o atributo `src`:
7373
<script src="/path/to/script.js"></script>
7474
```
7575

76+
<<<<<<< HEAD
7677
Aqui, `/path/to/script.js` é um caminho absoluto para o arquivo script (da raiz do site). Você também pode fornecer um caminho relativo a partir da página atual. Por exemplo, `src="script.js"` significaria um arquivo `"script.js"` na pasta atual.
78+
=======
79+
Here, `/path/to/script.js` is an absolute path to the script from the site root. One can also provide a relative path from the current page. For instance, `src="script.js"`, just like `src="./script.js"`, would mean a file `"script.js"` in the current folder.
80+
>>>>>>> 4541b7af7584014a676da731f6e8774da5e059f6
7781
7882
Nós também podemos dar uma URL completa. Por exemplo:
7983

1-js/05-data-types/03-string/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Here's the full list:
8181
| Character | Description |
8282
|-----------|-------------|
8383
|`\n`|New line|
84-
|`\r`|Carriage return: not used alone. Windows text files use a combination of two characters `\r\n` to represent a line break. |
84+
|`\r`|In Windows text files a combination of two characters `\r\n` represents a new break, while on non-Windows OS it's just `\n`. That's for historical reasons, most Windows software also understands `\n`. |
8585
|`\'`, `\"`|Quotes|
8686
|`\\`|Backslash|
8787
|`\t`|Tab|

1-js/06-advanced-functions/03-closure/9-sort-by-field/_js.view/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ describe("byField", function(){
2323
{ name: "John", age: 20, surname: "Johnson"},
2424
];
2525
let ageSortedAnswer = users.sort(byField("age"));
26-
assert.deepEqual(ageSortedKey, ageSortedKey);
26+
assert.deepEqual(ageSortedKey, ageSortedAnswer);
2727
});
2828

2929
it("sorts users by surname", function(){

1-js/06-advanced-functions/10-bind/article.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,8 @@ let user = {
187187

188188
let say = user.say.bind(user);
189189

190-
say("Hello"); // Hello, John ("Hello" argument is passed to say)
191-
say("Bye"); // Bye, John ("Bye" is passed to say)
190+
say("Hello"); // Hello, John! ("Hello" argument is passed to say)
191+
say("Bye"); // Bye, John! ("Bye" is passed to say)
192192
```
193193

194194
````smart header="Convenience method: `bindAll`"

1-js/09-classes/06-instanceof/article.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,13 @@ The algorithm of `obj instanceof Class` works roughly as follows:
8686
*!*
8787
alert(rabbit instanceof Animal); // true
8888
*/!*
89+
<<<<<<< HEAD
8990
// rabbit.__proto__ === Rabbit.prototype
91+
=======
92+
93+
// rabbit.__proto__ === Animal.prototype (no match)
94+
*!*
95+
>>>>>>> 4541b7af7584014a676da731f6e8774da5e059f6
9096
// rabbit.__proto__.__proto__ === Animal.prototype (match!)
9197
```
9298

1-js/11-async/02-promise-basics/03-animate-circle-promise/solution.view/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
text-align: center;
1111
}
1212
.circle {
13-
transition-property: width, height, margin-left, margin-top;
13+
transition-property: width, height;
1414
transition-duration: 2s;
1515
position: fixed;
1616
transform: translateX(-50%) translateY(-50%);

1-js/11-async/03-promise-chaining/article.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,19 @@ new Promise(function(resolve, reject) {
3434

3535
A ideia é que o resultado seja passado através de uma cadeia de tratadores `.then`.
3636

37+
<<<<<<< HEAD
3738
O fluxo é o seguinte:
3839
1. A promessa inicial é resolvida em 1 segundo `(*)`,
3940
2. Então o tratador de `.then` é chamado `(**)`, que por sua vez cria uma nova promessa (resolvida com o valor `2`).
4041
3. O próximo tratador `.then` `(***)` recebe o valor retornado pelo anterior, o processa (o duplica) e ele é passado ao próximo tratador.
4142
4. ...e assim por diante.
43+
=======
44+
Here the flow is:
45+
1. The initial promise resolves in 1 second `(*)`,
46+
2. Then the `.then` handler is called `(**)`, which in turn creates a new promise (resolved with `2` value).
47+
3. The next `then` `(***)` gets the result of the previous one, processes it (doubles) and passes it to the next handler.
48+
4. ...and so on.
49+
>>>>>>> 4541b7af7584014a676da731f6e8774da5e059f6
4250
4351
Como o resultado é passado através da cadeia de tratadores, podemos observar a sequência de chamadas `alert`: `1` -> `2` -> `4`.
4452

1-js/11-async/08-async-await/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ The `async` keyword before a function has two effects:
303303
304304
The `await` keyword before a promise makes JavaScript wait until that promise settles, and then:
305305
306-
1. If it's an error, the exception is generated — same as if `throw error` were called at that very place.
306+
1. If it's an error, an exception is generated — same as if `throw error` were called at that very place.
307307
2. Otherwise, it returns the result.
308308
309309
Together they provide a great framework to write asynchronous code that is easy to both read and write.

1-js/13-modules/01-modules-intro/article.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,11 @@ In a module, top-level `this` is undefined, as opposed to a global object in non
261261
262262
There are also several browser-specific differences of scripts with `type="module"` compared to regular ones.
263263
264+
<<<<<<< HEAD
264265
You may want skip those for now if you're reading for the first time, or if you don't use JavaScript in a browser.
266+
=======
267+
You may want to skip this section for now if you're reading for the first time, or if you don't use JavaScript in a browser.
268+
>>>>>>> 4541b7af7584014a676da731f6e8774da5e059f6
265269
266270
### Module scripts are deferred
267271

0 commit comments

Comments
 (0)