回答編集履歴

1

調整

2021/04/06 00:16

投稿

yambejp
yambejp

スコア116730

test CHANGED
@@ -2,19 +2,19 @@
2
2
 
3
3
  ```javascript
4
4
 
5
- const f = ()=>new Promise((resolve, reject) => {
5
+ const f = ()=>new Promise(resolve => {
6
6
 
7
7
  setTimeout(()=> resolve(1), 1000);
8
8
 
9
9
  });
10
10
 
11
- const g = (arg)=>new Promise((resolve, reject) => {
11
+ const g = (arg)=>new Promise(resolve => {
12
12
 
13
13
  setTimeout(()=> resolve(arg+"2"), 500);
14
14
 
15
15
  });
16
16
 
17
- const h = (arg)=>new Promise((resolve, reject) => {
17
+ const h = (arg)=>new Promise(resolve => {
18
18
 
19
19
  setTimeout(()=> resolve(arg+"3"), 300);
20
20