This commit is contained in:
Karan 2021-11-25 20:01:23 +05:30 committed by GitHub
parent 503a608f5a
commit 34cec46a9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,13 +0,0 @@
const myPromise = new Promise((resolve, reject) => {
resolve('Start Counting');
});
function counter(val){
console.log(val);
}
myPromise
.then(value => {counter(value); return "one"})
.then(value => {counter(value); return "two"})
.then(value => {counter(value); return "three"})
.then(value => {counter(value);})