Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
pyramid of doom
const id = 21;
const callback = function(data1){
//1. callback fonksiyon gövdesi
console.log(data)
//asenkron kod
getData(22, function(data2){
//2. callback fonksiyon gövdesi
console.log(data,data2)
})
};
getData(id, callback);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment