Skip to content

Commit 8714d01

Browse files
committed
Update README.md
1 parent cee62fc commit 8714d01

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

README.md

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1022,16 +1022,12 @@ An asynchronous function is one where some external activity must complete befor
10221022
/**
10231023
* Callback Hell
10241024
*/
1025-
getData(function(a){
1026-
getMoreData(a, function(b){
1027-
getMoreData(b, function(c){
1028-
getMoreData(c, function(d){
1029-
getMoreData(d, function(e){
1030-
...
1031-
});
1032-
});
1033-
});
1025+
firstFunction(function (a) {
1026+
secondFunction(a, function (b) {
1027+
thirdFunction(b, function (c) {
1028+
// And so on…
10341029
});
1030+
});
10351031
});
10361032
```
10371033

0 commit comments

Comments
 (0)