Skip to content

Commit 3ecfa55

Browse files
committed
another case
1 parent 9523a4f commit 3ecfa55

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

chapters/ch04.asciidoc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,8 +298,7 @@ function getUserWebsite(user) {
298298
}
299299
----
300300

301-
...
302-
301+
When we want to name an aspect of a routine without adding a comment, we could create a function to host that functionality. Doing so doesn't just give a name to what the algorithm is doing, but it also allows us to push that code out of the way, leaving behind only the high level description of what's going to happen.
303302

304303
==== 4.2.4 Flattening Nested Callbacks
305304

0 commit comments

Comments
 (0)