From d151bff8b7be9cff1b318a705d174b63c73738f0 Mon Sep 17 00:00:00 2001 From: Martijn Arts Date: Fri, 6 Nov 2020 11:57:02 +0100 Subject: [PATCH] Fix Async/Await callback example As caught by @shenshin --- Week3/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Week3/README.md b/Week3/README.md index 269b36504..03d8d09ab 100644 --- a/Week3/README.md +++ b/Week3/README.md @@ -253,9 +253,9 @@ Last week you learned about Promises. To recap, here's what we learned: in order At first we learned about callbacks, as a way to do this: ```js -const someFunc(param1, callback) { - const callback(param1); - return; +function someFunc(param1, callback) { + const result = callback(param1); + return result; } ```