Skip to content

Commit 8a26ff2

Browse files
committed
correct Example 4
1 parent 860376f commit 8a26ff2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/JavaScript_Basics_Info/higher_order_functions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ console.log(numList.sort()); // prints [100,20,34,67]
118118
```
119119

120120
```js
121-
// Example 3
121+
// Example 4
122122
const numList = [34, 67, 100, 20];
123123
console.log(numList.sort((a, b) => a - b)); // prints [20,34,67,100]
124124
console.log(numList.sort((a, b) => b - a)); // prints [100,67,34,20]

0 commit comments

Comments
 (0)