Created
July 18, 2020 03:17
This file contains hidden or 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 completed = true; | |
let learnJS = new Promise(function (resolve, reject) { | |
if (completed) { | |
resolve("I have completed learning JS."); | |
} else { | |
reject("I haven't completed learning JS yet."); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment