Skip to content

Commit b070c41

Browse files
committed
Resolve conflicts
1 parent f2ec0d3 commit b070c41

File tree

3 files changed

+3
-23
lines changed

3 files changed

+3
-23
lines changed

1-js/02-first-steps/05-types/article.md

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -46,23 +46,15 @@ Além dos números regulares, existem os chamados "valores numéricos especiais"
4646
alert( "not a number" / 2 ); // NaN, tal divisão é errônea
4747
```
4848

49-
<<<<<<< HEAD
50-
`NaN` é pegajoso. Qualquer outra operação em `NaN` retorna `NaN`:
51-
=======
52-
`NaN` is sticky. Any further mathematical operation on `NaN` returns `NaN`:
53-
>>>>>>> bae0ef44d0208506f6e9b7f3421ee640ab41af2b
49+
`NaN` é pegajoso. Qualquer outra operação matemática com `NaN` retorna `NaN`:
5450

5551
```js run
5652
alert( NaN + 1 ); // NaN
5753
alert( 3 * NaN ); // NaN
5854
alert( "not a number" / 2 - 1 ); // NaN
5955
```
6056

61-
<<<<<<< HEAD
62-
Então, se há um `NaN` em algum lugar em uma expressão matemática, ele se propaga para o resultado inteiro.
63-
=======
64-
So, if there's a `NaN` somewhere in a mathematical expression, it propagates to the whole result (there's only one exception to that: `NaN ** 0` is `1`).
65-
>>>>>>> bae0ef44d0208506f6e9b7f3421ee640ab41af2b
57+
Então, se há um `NaN` em algum lugar em uma expressão matemática, ele se propaga para o resultado inteiro (existe apenas uma exceção nisto: `NaN ** 0` é `1`).
6658

6759
```smart header="As operações matemáticas são seguras"
6860
Fazer matemática é "seguro" em JavaScript. Podemos fazer qualquer coisa: dividir por zero, tratar strings não-numéricas como números, etc.

1-js/02-first-steps/17-arrow-functions-basics/article.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,7 @@ let sum = function(a, b) {
3333
alert( sum(1, 2) ); // 3
3434
```
3535

36-
<<<<<<< HEAD
3736
Como pode ver, `(a, b) => a + b` significa uma função que aceita dois argumentos, nomeadamente `a` e `b`. No momento da execução, esta avalia a expressão `a + b` e retorna o resultado.
38-
=======
39-
As you can see, `(a, b) => a + b` means a function that accepts two arguments named `a` and `b`. Upon the execution, it evaluates the expression `a + b` and returns the result.
40-
>>>>>>> bae0ef44d0208506f6e9b7f3421ee640ab41af2b
4137

4238
- Se tivermos apenas um argumento, então os parênteses à sua volta podem ser omitidos, tornando ela ainda mais curta.
4339

@@ -90,11 +86,7 @@ Desta forma:
9086
let sum = (a, b) => { // a chaveta abre uma função multi-linha
9187
let result = a + b;
9288
*!*
93-
<<<<<<< HEAD
9489
return result; // se usarmos chavetas, então precisamos de um "return" explícito
95-
=======
96-
return result; // if we use curly braces, then we need an explicit "return"
97-
>>>>>>> bae0ef44d0208506f6e9b7f3421ee640ab41af2b
9890
*/!*
9991
};
10092

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,7 @@ new Promise(function(resolve, reject) {
120120
});
121121
```
122122

123-
<<<<<<< HEAD
124-
Aqui o primeiro `.then` exibe `1` e retorna `new Promise(…)` na linha `(*)`. Após 1 segundo ele é resolvido, e o resultado (o argumento de `resolve`, no caso é `result * 2`) é passado ao tratador do segundo `.then`. O tratador está na linha `(**)`, ele exibe `2` e faz a mesma coisa.
125-
=======
126-
Here the first `.then` shows `1` and returns `new Promise(…)` in the line `(*)`. After one second it resolves, and the result (the argument of `resolve`, here it's `result * 2`) is passed on to the handler of the second `.then`. That handler is in the line `(**)`, it shows `2` and does the same thing.
127-
>>>>>>> bae0ef44d0208506f6e9b7f3421ee640ab41af2b
123+
Aqui o primeiro `.then` exibe `1` e retorna `new Promise(…)` na linha `(*)`. Após 1 segundo ela é resolvida, e o resultado (o argumento de `resolve`, aqui é `result * 2`) é passado ao tratador do segundo `.then`. O tratador está na linha `(**)`, ele exibe `2` e faz a mesma coisa.
128124

129125
Então a saída é a mesma que no exemplo anterior: 1 -> 2 -> 4, mas agora com 1 segundo de atraso entre as chamadas `alert`.
130126

0 commit comments

Comments
 (0)