Skip to content

Commit

Permalink
double .then call
Browse files Browse the repository at this point in the history
  • Loading branch information
codingXpert committed Jul 5, 2022
1 parent 8bad0e3 commit d85dfd3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions promise2.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ myPromise
console.log('Success');
});

myPromise
.then(() =>{
console.log('Twice Success');
});

myPromise
.catch(() => {
console.log('Some error has occured');
Expand Down

0 comments on commit d85dfd3

Please sign in to comment.