We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6bad396 commit 95674b5Copy full SHA for 95674b5
challenges/async.md
@@ -1226,8 +1226,8 @@ function asyncFunc(data, delay){
1226
1227
function* gen() {
1228
// async function
1229
- const num1 = yield new asyncFunc(2, 1000);
1230
- const num2 = yield new asyncFunc(1, 2000);
+ const num1 = yield asyncFunc(2, 1000);
+ const num2 = yield asyncFunc(1, 2000);
1231
console.log(num1 + num2); // 3 (2 + 1)
1232
}
1233
0 commit comments