Skip to content

Instantly share code, notes, and snippets.

View lumosmind's full-sized avatar
🎯
Focusing

Mustafa Kemal Tuna lumosmind

🎯
Focusing
View GitHub Profile
const id = 21;
function executor (resolve, reject){
getData(id, resolve)
};
function handler(result){
console.log(result)
};
let id = 21;
function executor (resolve, reject){
getData(id, resolve)
};
const myPromise = new Promise(executor);
myPromise
.then((result)=>{