Skip to content

Commit 91eb6c4

Browse files
authored
Merge pull request #468 from upupming-site/master
Fixed: Parentheses do not match
2 parents 101f8ba + fda9eb2 commit 91eb6c4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: 6-async/04-promise-api/01-promise-errors-as-results/source.view/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
alert(responses[0].status); // 200
2222
alert(responses[1].status); // 200
2323
alert(responses[2]); // TypeError: failed to fetch (text may vary)
24-
));
24+
});
2525
</script>
2626

2727
</body>

Diff for: 6-async/04-promise-api/01-promise-errors-as-results/task.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Promise.all(urls.map(url => fetch(url)))
1717
for(let response of responses) {
1818
alert(`${response.url}: ${response.status}`);
1919
}
20-
));
20+
});
2121
```
2222

2323
The problem is that if any of requests fails, then `Promise.all` rejects with the error, and we loose results of all the other requests.

0 commit comments

Comments
 (0)