generated from CodecoolArchive/async-workshop-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtask12.js
More file actions
21 lines (15 loc) · 671 Bytes
/
task12.js
File metadata and controls
21 lines (15 loc) · 671 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { getRandomNumberSlowly } from "./promises.js";
/*
- Create a function that generates 3 random number. Log this 3 numbers to the console.
- This time use only the getRandomNumberSlowly() function.
- Run the promises concurrently with the Promise.all() or Promise.allSettled() functions.
- You can choose between the then and the async await syntax.
Goal: Concurrent promise execution.
Questions:
- What is the difference between the sequential and the concurrent execution of the promises?
- When starting the Promise operation?
- What is the difference between Promise.all() and Promise.allSettled()?
*/
const task = () => {
}
task()