Skip to content

Commit 11b39ab

Browse files
committed
wording on callback notes
1 parent a2d2565 commit 11b39ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

assignments/callbacks.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ const items = ['Pencil', 'Notebook', 'yo-yo', 'Gum'];
1818
1919
// NOTES ON THE SOLUTION:
2020
21-
// firstItem is a higher order function
22-
// that expects a callback (referred to as `cb`) as its second argument.
21+
// firstItem is a higher order function.
22+
// It expects a callback (referred to as `cb`) as its second argument.
2323
// To test our solution, we will use the given `items` array and a variety of callbacks.
2424
// Note how callbacks can be declared separately, or inlined.
2525

0 commit comments

Comments
 (0)