This commit is contained in:
szabomarton
2024-10-10 11:57:12 +02:00
parent 6b33de27f0
commit 8f5e76664e
3 changed files with 60 additions and 0 deletions

12
20241010/sosincsvege.js Normal file
View 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)});