Skip to content

Commit a32cd4a

Browse files
committed
merging all conflicts
2 parents e4a7d5e + 2cca9a9 commit a32cd4a

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

1-js/11-async/05-promise-api/article.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,12 +243,21 @@ Zde je příklad, v němž všechny přísliby selžou:
243243
244244
```js run
245245
Promise.any([
246+
<<<<<<< HEAD
246247
new Promise((resolve, reject) => setTimeout(() => reject(new Error("Au!")), 1000)),
247248
new Promise((resolve, reject) => setTimeout(() => reject(new Error("Chyba!")), 2000))
248249
]).catch(chyba => {
249250
console.log(chyba.constructor.name); // AggregateError
250251
console.log(chyba.errors[0]); // Error: Au!
251252
console.log(chyba.errors[1]); // Error: Chyba
253+
=======
254+
new Promise((resolve, reject) => setTimeout(() => reject(new Error("Ouch!")), 1000)),
255+
new Promise((resolve, reject) => setTimeout(() => reject(new Error("Error!")), 2000))
256+
]).catch(error => {
257+
console.log(error.constructor.name); // AggregateError
258+
console.log(error.errors[0]); // Error: Ouch!
259+
console.log(error.errors[1]); // Error: Error!
260+
>>>>>>> 2cca9a9d09fdd45819832294225aa3721fa5a2d4
252261
});
253262
```
254263

2-ui/1-document/04-searching-elements-dom/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ For instance:
154154
<div class="contents">
155155
<ul class="book">
156156
<li class="chapter">Chapter 1</li>
157-
<li class="chapter">Chapter 1</li>
157+
<li class="chapter">Chapter 2</li>
158158
</ul>
159159
</div>
160160

0 commit comments

Comments
 (0)