From f90496922f199f5088bf0c155a16c8f82726f6fd Mon Sep 17 00:00:00 2001 From: Karan <50290386+Sonawane-Karan26@users.noreply.github.com> Date: Thu, 25 Nov 2021 20:03:28 +0530 Subject: [PATCH] cleanup --- Chapter 12/async await | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 Chapter 12/async await diff --git a/Chapter 12/async await b/Chapter 12/async await deleted file mode 100644 index 2dbb25b..0000000 --- a/Chapter 12/async await +++ /dev/null @@ -1,17 +0,0 @@ - let cnt = 0; - function outputTime(val) { - return new Promise(resolve => { - setTimeout(() => { - cnt++; - resolve(`x value ${val} counter:${cnt}`); - }, 1000); - }); - } - async function aCall(val) { - console.log(`ready ${val} counter:${cnt}`); - const res = await outputTime(val); - console.log(res); - } - for (let x = 1; x < 4; x++) { - aCall(x); - }