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

Skip to content

Commit d151bff

Browse files
authored
Fix Async/Await callback example
As caught by @shenshin
1 parent 56d42ff commit d151bff

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)