asd
This commit is contained in:
12
20241010/sosincsvege.js
Normal file
12
20241010/sosincsvege.js
Normal file
@@ -0,0 +1,12 @@
|
||||
let condition = false;
|
||||
|
||||
|
||||
let myPromise = new Promise((resolve, reject) => {
|
||||
if (condition){
|
||||
resolve("JÓÓÓ");
|
||||
}
|
||||
|
||||
reject("szar");
|
||||
});
|
||||
|
||||
myPromise.then((good) => {console.log(good)}).catch((error) =>{console.log(error)});
|
||||
Reference in New Issue
Block a user