You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
3. We load `3.js`, then if there's no error -- do something else `(*)`.
235
235
236
236
As calls become more nested, the code becomes deeper and increasingly more difficult to manage, especially if we have real code instead of `...` that may include more loops, conditional statements and so on.
@@ -299,7 +299,7 @@ function step3(error, script) {
299
299
}
300
300
```
301
301
302
-
See? It does the same, and there's no deep nesting now because we made every action a separate top-level function.
302
+
See? It does the same thing, and there's no deep nesting now because we made every action a separate top-level function.
303
303
304
304
It works, but the code looks like a torn apart spreadsheet. It's difficult to read, and you probably noticed that one needs to eye-jump between pieces while reading it. That's inconvenient, especially if the reader is not familiar with the code and doesn't know where to eye-jump.
0 commit comments