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');