File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 1+ /* eslint-disable */
2+
13/* For portion of the assignment your job is to write functions
24 * so that each function invocation below works. You're working backwards.
35 *
46 * There are no tests for this file.
5- *
7+ *
68 * Example:
79 *
810 * greeting('Hey guys', (message) => {
911 * console.log(message);
1012 * });
1113 *
1214 * You would then define the greeting function to make the invocation work.
13- *
15+ *
1416 *
1517 * const greeting = (str, cb) => {
1618 * cb(str);
1719 * };
1820 *
19- */
20-
21+ */
2122
2223// Write a function called firstItem that passes the first item of the given array to the callback function
2324// code here
@@ -77,4 +78,6 @@ removeDuplicates(foods, (uniqueFoods) => {
7778
7879forEach ( foods , ( value , index ) => {
7980 console . log ( `${ value } is at index ${ index } .` ) ;
80- } ) ;
81+ } ) ;
82+
83+ /* eslint-enable */
You can’t perform that action at this time.
0 commit comments