Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 89179f9

Browse files
committed
edit the last exercise functions
1 parent 656fd64 commit 89179f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

units/03/js-functions.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ let arrays = [[1, 2, 3], [4, 5], [6]];
112112
// flat(arrays) → [1, 2, 3, 4, 5, 6]
113113
```
114114

115-
6. Write a function `every(array,test)` that returns whether `test` returns true for every element in the given array.
115+
6. Write a function `every(array,test)` that returns whether `test` returns true for every element in the given array.** This function already [exists](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/every), but can you write it yourself? :)
116116

117117
```js
118118
function every(array, test) {

0 commit comments

Comments
 (0)