Created
July 30, 2021 17:11
-
-
Save alibalbars/e3ad9a079bd3cf72b5dc78d7e13f9ad9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let promise = new Promise(resolve => { | |
setTimeout(() => resolve("done!"), 1000); | |
}); | |
promise.then(consolo.log); // (1) | |
promise.then(consolo.log()); // (2) | |
promise.then((data) => consolo.log(data)); // (3) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment