From 34a25c7afdb4b30f0ccd723d00e8cb235e594724 Mon Sep 17 00:00:00 2001 From: Elizabeth Craig Date: Fri, 1 Mar 2019 11:56:11 -0800 Subject: [PATCH] fix bug in step2-01 demos --- step2-01/exercise/src/index.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/step2-01/exercise/src/index.ts b/step2-01/exercise/src/index.ts index 0a6a369..c625c54 100644 --- a/step2-01/exercise/src/index.ts +++ b/step2-01/exercise/src/index.ts @@ -50,6 +50,12 @@ function makePromise() { return Promise.resolve(5); } -// TODO: call makePromise() using await syntax and log the results - // TODO: create a new async function + +async function run() { + // TODO: call makePromise() using await syntax and log the results + + // TODO: call your new async function +} + +run();