Skip to content

Instantly share code, notes, and snippets.

@jackpordi
Created September 3, 2019 22:44
function callbackHell() {
boilPot(() => {
addCarrots();
letPotKeepBoiling(
() => {
addOnions();
letPotKeepBoiling(
() => {
console.log("Your vegetable soup is ready!");
},
1000,
);
},
5000
)
},
5000,
chopCarrots(),
chopOnions(),
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment