Skip to content

Instantly share code, notes, and snippets.

@lumosmind
Last active November 7, 2020 17:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lumosmind/927d463375eb84091803ae1ba29e4d7a to your computer and use it in GitHub Desktop.
Save lumosmind/927d463375eb84091803ae1ba29e4d7a to your computer and use it in GitHub Desktop.
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