Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0331916

Browse files
authored
Merge pull request HackYourFuture#432 from TotempaaltJ/patch-1
Fix Async/Await callback example
2 parents db77890 + d151bff commit 0331916

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Week3/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -253,9 +253,9 @@ Last week you learned about Promises. To recap, here's what we learned: in order
253253
At first we learned about callbacks, as a way to do this:
254254

255255
```js
256-
const someFunc(param1, callback) {
257-
const callback(param1);
258-
return;
256+
function someFunc(param1, callback) {
257+
const result = callback(param1);
258+
return result;
259259
}
260260
```
261261

0 commit comments

Comments
 (0)