Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d151bff

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

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Open diff view settings
Collapse file

‎Week3/README.md‎

Copy file name to clipboardExpand all lines: Week3/README.md
+3-3Lines changed: 3 additions & 3 deletions
  • Display the source diff
  • Display the rich diff
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.