We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54ad8ae commit 1f2b704Copy full SHA for 1f2b704
1 file changed
src/project-4.js
@@ -5,10 +5,12 @@ const getFirstItem = (collection, cb) => {
5
6
const getLength = (collection, cb) => {
7
// Write a function called getLength that passes the length of the array into the callback
8
+ cb(collection.length);
9
};
10
11
const getLastItem = (collection, cb) => {
12
// Write a function called getLastItem which passes the getLastItem item of the array into the callback
13
+ cb(collection[collection.length - 1]);
14
15
16
const sumNums = (x, y, cb) => {
0 commit comments