Skip to content

Commit 34fe76c

Browse files
committed
promise update
1 parent 122e9c4 commit 34fe76c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

assesment.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33

44
let myPromise = new Promise(function(myResolve, myReject) {
5-
let x = 0;
5+
let x = 1;
66

77
// The producing code (this may take some time)
88

@@ -13,7 +13,7 @@
1313
}
1414
});
1515

16-
myPromise.then(
16+
myPromise.catch(
1717
function(value) {console.log(value);},
1818
function(error) {console.log(error);}
1919
);

0 commit comments

Comments
 (0)