revision new files

This commit is contained in:
brightboost
2021-10-03 19:53:08 +02:00
parent b89b9dfb3f
commit c5760d0af3
11 changed files with 245 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
const promise = new Promise((fulfill, reject) => {
fulfill('success!');
//reject('oops...');
})
.then(value => {
console.log(value);
return 'we';
})
.then(value => {
console.log(value);
return 'can';
})
.then(value => {
console.log(value);
return 'chain';
})
.then(value => {
console.log(value);
return 'promises';
})
.then(value => {
console.log(value);
})
.catch(value => {
console.log(value);
})