FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
Promise/JavaScript/8-all.js at master · HowProgrammingWorks/Promise · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
HowProgrammingWorks
/
Promise
Public
Notifications
You must be signed in to change notification settings
Fork
13
Star
22
Code
Issues
2
Pull requests
9
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
Promise
/
JavaScript
/
8-all.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
18 lines (15 loc) · 317 Bytes
Breadcrumbs
Promise
/
JavaScript
/
8-all.js
Copy path
File metadata and controls
18 lines (15 loc) · 317 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
'use strict'
;
const
baseUrl
=
'http://localhost:3000'
;
const
promises
=
[
fetch
(
`
${
baseUrl
}
/person`
)
,
fetch
(
`
${
baseUrl
}
/`
)
,
fetch
(
`
${
baseUrl
}
/city`
)
,
]
;
Promise
.
allSettled
(
promises
)
//Promise.all(promises)
.
then
(
(
values
)
=>
{
console
.
log
(
values
)
;
}
)
.
catch
(
(
err
)
=>
{
console
.
log
(
err
)
;
}
)
;
Back
|
FazBrowse Home
|
New Git URL