Skip to content

Commit 9a4bf1b

Browse files
committed
name variables better in example
1 parent 8b4b176 commit 9a4bf1b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

assignments/callbacks.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ const items = ['Pencil', 'Notebook', 'yo-yo', 'Gum'];
3030
3131
// TEST 2 (declaring callback before hand):
3232
33-
function exorbitantPrice(thing) {
34-
console.log(`this ${thing} costs a million dollars!`);
33+
function logExorbitantPrice(article) {
34+
console.log(`this ${article} costs a million dollars!`);
3535
};
3636
37-
firstItem(items, exorbitantPrice);
37+
firstItem(items, logExorbitantPrice);
3838
// "this Pencil costs a million dollars!"
3939
*/
4040

0 commit comments

Comments
 (0)