We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cee62fc commit 8714d01Copy full SHA for 8714d01
README.md
@@ -1022,16 +1022,12 @@ An asynchronous function is one where some external activity must complete befor
1022
/**
1023
* Callback Hell
1024
*/
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
+firstFunction(function (a) {
+ secondFunction(a, function (b) {
+ thirdFunction(b, function (c) {
+ // And so on…
1034
});
+ });
1035
1036
```
1037
0 commit comments