From 9e7fc16a3a38c38f6b8a16ac38422bac7ab17d62 Mon Sep 17 00:00:00 2001 From: VinaySehwag14 <55314386+VinaySehwag14@users.noreply.github.com> Date: Tue, 4 May 2021 11:45:42 +0530 Subject: [PATCH] Update async.js I added an answer of challenge 2. --- async.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/async.js b/async.js index 6524701..5da8f3f 100644 --- a/async.js +++ b/async.js @@ -15,8 +15,10 @@ function testMe() { /* CHALLENGE 2 */ function delayedGreet() { - // ADD CODE HERE -} + console.log("welcome") + } + +setTimeout(delayedGreet, 3000) // Uncomment the following line to check your work! // delayedGreet(); // should log (after 3 seconds): welcome