Skip to content

Commit 03e4644

Browse files
authored
Merge pull request #38 from javascript-tutorial/master
changes
2 parents 577896b + cd1f432 commit 03e4644

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

1-js/02-first-steps/10-ifelse/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ if (podmínka) {
6868

6969
## Klauzule „else“
7070

71-
Příkaz `if` může obsahovat nepovinný blok else, který se vykoná, když podmínka je nepravdivá.
71+
Příkaz `if` může obsahovat nepovinný blok `else`, který se vykoná, když podmínka je nepravdivá.
7272

7373
Příklad:
7474
```js run

1-js/05-data-types/05-array-methods/article.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ alert( arr.includes(1) ); // true
255255

256256
Please note that `indexOf` uses the strict equality `===` for comparison. So, if we look for `false`, it finds exactly `false` and not the zero.
257257

258-
If we want to check if `item` exists in the array, and don't need the exact index, then `arr.includes` is preferred.
258+
If we want to check if `item` exists in the array, and don't need the index, then `arr.includes` is preferred.
259259

260260
The method [arr.lastIndexOf](mdn:js/Array/lastIndexOf) is the same as `indexOf`, but looks for from right to left.
261261

@@ -338,8 +338,6 @@ alert(users.findIndex(user => user.name == 'John')); // 0
338338
alert(users.findLastIndex(user => user.name == 'John')); // 3
339339
```
340340
341-
342-
343341
### filter
344342
345343
The `find` method looks for a single (first) element that makes the function return `true`.

5-network/10-long-polling/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Long polling
22

3-
Long polling is the simplest way of having persistent connection with server, that doesn't use any specific protocol like WebSocket or Server Side Events.
3+
Long polling is the simplest way of having persistent connection with server, that doesn't use any specific protocol like WebSocket or Server Sent Events.
44

55
Being very easy to implement, it's also good enough in a lot of cases.
66

0 commit comments

Comments
 (0)