Skip to content

Commit aad1a6e

Browse files
committed
merging all conflicts
2 parents 4d3e091 + ea7738b commit aad1a6e

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,11 @@ if (podmínka) {
6868

6969
## Klauzule „else“
7070

71+
<<<<<<< HEAD
7172
Příkaz `if` může obsahovat nepovinný blok „else“, který se vykoná, když podmínka je nepravdivá.
73+
=======
74+
The `if` statement may contain an optional `else` block. It executes when the condition is falsy.
75+
>>>>>>> ea7738bb7c3616bb51ff14ae3db2a2747d7888ff
7276
7377
Příklad:
7478
```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)