You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 1-js/01-getting-started/1-intro/article.md
+3-11Lines changed: 3 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -106,19 +106,11 @@ Ferramentas modernas tornam a transpilação muito rápida e transparente, permi
106
106
107
107
Exemplos de tais linguagens:
108
108
109
-
<<<<<<< HEAD
110
109
-[CoffeeScript](http://coffeescript.org/) é um "açúcar sintático" para JavaScript. Ele introduz uma sintaxe mais curta, permitindo-nos escrever um código mais claro e preciso. Normalmente, Ruby devs gostam dele.
111
-
-[TypeScript](http://www.typescriptlang.org/) está concentrado em adicionar "dados estritos de digitação" para simplificar o desenvolvimento e suporte de sistemas complexos. É desenvolvido pela Microsoft.
112
-
-[Flow](http://flow.org/) também adiciona dados de digitação, mas de uma forma diferente. Desenvolvido pela Facebook.
113
-
-[Dart](https://www.dartlang.org/) é uma linguagem autônoma que tem seu próprio mecanismo que roda em ambientes sem navegador (como aplicativos móveis), mas também pode ser transpilada para JavaScript. Desenvolvido pela Google.
110
+
-[TypeScript](http://www.typescriptlang.org/) está concentrado em adicionar "estritos tipos de dados" para simplificar o desenvolvimento e suporte de sistemas complexos. É desenvolvido pela Microsoft.
111
+
-[Flow](http://flow.org/) também adiciona tipos de dados, mas de uma forma diferente. Desenvolvido pela Facebook.
112
+
-[Dart](https://www.dartlang.org/) é uma linguagem autônoma que tem seu próprio interpretador que roda em ambientes fora do navegador (como aplicativos móveis), mas também pode ser transpilada para JavaScript. Desenvolvido pela Google.
114
113
-[Brython](https://brython.info/) é um transpilador de Python para JavaScript que permite escrever aplicativos em puro Python, sem JavaScript.
115
-
=======
116
-
-[CoffeeScript](http://coffeescript.org/) is a "syntactic sugar" for JavaScript. It introduces shorter syntax, allowing us to write clearer and more precise code. Usually, Ruby devs like it.
117
-
-[TypeScript](http://www.typescriptlang.org/) is concentrated on adding "strict data typing" to simplify the development and support of complex systems. It is developed by Microsoft.
118
-
-[Flow](http://flow.org/) also adds data typing, but in a different way. Developed by Facebook.
119
-
-[Dart](https://www.dartlang.org/) is a standalone language that has its own engine that runs in non-browser environments (like mobile apps), but also can be transpiled to JavaScript. Developed by Google.
120
-
-[Brython](https://brython.info/) is a Python transpiler to JavaScript that enables the writing of applications in pure Python without JavaScript.
121
-
>>>>>>> e1a3f634a47c119cf1ec7420c49fc0fc7172c0b5
122
114
123
115
Há mais. Claro que, mesmo que usemos uma dessas linguagens transpiladas, também devemos saber JavaScript para entender o que estamos fazendo.
Copy file name to clipboardExpand all lines: 1-js/05-data-types/06-iterable/article.md
-8Lines changed: 0 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -140,11 +140,7 @@ for (let char of str) {
140
140
141
141
## Calling an iterator explicitly
142
142
143
-
<<<<<<< HEAD
144
-
Normally, internals of iterables are hidden from the external code. There's a `for..of` loop, that works, that's all it needs to know.
145
-
=======
146
143
For deeper understanding, let's see how to use an iterator explicitly.
147
-
>>>>>>> e1a3f634a47c119cf1ec7420c49fc0fc7172c0b5
148
144
149
145
We'll iterate over a string in exactly the same way as `for..of`, but with direct calls. This code creates a string iterator and gets values from it "manually":
150
146
@@ -174,13 +170,9 @@ Two official terms look similar, but are very different. Please make sure you un
174
170
-*Iterables* are objects that implement the `Symbol.iterator` method, as described above.
175
171
-*Array-likes* are objects that have indexes and `length`, so they look like arrays.
176
172
177
-
<<<<<<< HEAD
178
-
Naturally, these properties can combine. For instance, strings are both iterable (`for..of` works on them) and array-like (they have numeric indexes and `length`).
179
-
=======
180
173
When we use JavaScript for practical tasks in a browser or any other environment, we may meet objects that are iterables or array-likes, or both.
181
174
182
175
For instance, strings are both iterable (`for..of` works on them) and array-like (they have numeric indexes and `length`).
183
-
>>>>>>> e1a3f634a47c119cf1ec7420c49fc0fc7172c0b5
184
176
185
177
But an iterable may not be array-like. And vice versa an array-like may not be iterable.
0 commit comments