Skip to content

Instantly share code, notes, and snippets.

@Yougigun
Created July 18, 2020 03:17
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