Skip to content

Commit ec21af8

Browse files
authored
Merge pull request #1570 from Violet-Bora-Lee/master
minor fixes
2 parents 611fefd + 3ffa0be commit ec21af8

File tree

5 files changed

+8
-6
lines changed

5 files changed

+8
-6
lines changed

1-js/02-first-steps/12-while-for/article.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ But we can force the exit at any time using the special `break` directive.
212212

213213
For example, the loop below asks the user for a series of numbers, "breaking" when no number is entered:
214214

215-
```js
215+
```js run
216216
let sum = 0;
217217

218218
while (true) {

1-js/05-data-types/06-iterable/article.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -142,15 +142,17 @@ for (let char of str) {
142142

143143
For deeper understanding let's see how to use an iterator explicitly.
144144

145-
We'll iterate over a string in exactlly the same way as `for..of`, but with direct calls. This code creates a string iterator and gets values from it "manually":
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":
146146

147147
```js run
148148
let str = "Hello";
149149

150150
// does the same as
151151
// for (let char of str) alert(char);
152152

153+
*!*
153154
let iterator = str[Symbol.iterator]();
155+
*/!*
154156

155157
while (true) {
156158
let result = iterator.next();
@@ -268,7 +270,7 @@ for (let char of str) {
268270
alert(chars);
269271
```
270272

271-
...But is shorter.
273+
...But it is shorter.
272274

273275
We can even build surrogate-aware `slice` on it:
274276

1-js/09-classes/02-class-inheritance/article.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ The syntax to extend another class is: `class Child extends Parent`.
4040

4141
Let's create `class Rabbit` that inherits from `Animal`:
4242

43-
```js
43+
```js run
4444
*!*
4545
class Rabbit extends Animal {
4646
*/!*

1-js/11-async/07-microtask-queue/article.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Now the order is as intended.
5656

5757
Remember the `unhandledrejection` event from the chapter <info:promise-error-handling>?
5858

59-
Now we can see exactly how JavaScript finds out that there was an unhandled rejection
59+
Now we can see exactly how JavaScript finds out that there was an unhandled rejection.
6060

6161
**"Unhandled rejection" occurs when a promise error is not handled at the end of the microtask queue.**
6262

1-js/99-js-misc/01-proxy/article.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ user = new Proxy(user, {
310310
return {
311311
enumerable: true,
312312
configurable: true
313-
/* ...other flags, probable "value:..."" */
313+
/* ...other flags, probable "value:..." */
314314
};
315315
}
316316

0 commit comments

Comments
 (0)