updated folder structure

This commit is contained in:
brightboost
2021-11-25 14:40:42 +01:00
parent 3201b7b09c
commit f8bde27fc6
78 changed files with 0 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
let promise = new Promise(function (resolve, reject) {
// do something that might take a while
// let's just set x instead for this example
let x = 20;
if (x > 10) {
resolve(x); // on success
} else {
reject("Too low"); // on error
}
});
promise.then(
function (value) {
console.log("Success:", value)
},
function (error) {
console.log("Error:", error)
}
);