From d85dfd3d34e7ac1629595415b45ac84047104f25 Mon Sep 17 00:00:00 2001 From: Vivek Date: Tue, 5 Jul 2022 21:43:19 +0530 Subject: [PATCH] double .then call --- promise2.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/promise2.js b/promise2.js index c677f76..6f74e4f 100644 --- a/promise2.js +++ b/promise2.js @@ -15,6 +15,11 @@ myPromise console.log('Success'); }); + myPromise + .then(() =>{ + console.log('Twice Success'); + }); + myPromise .catch(() => { console.log('Some error has occured');