Skip to content

Commit 6b65003

Browse files
authored
Update 07-arrays-solutions.js
Fix exercise description
1 parent 6f8248b commit 6b65003

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/exercises/07-arrays-solutions.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ console.log(topN(1, ['apple']), '=== [\'apple\']');
604604

605605
process.stdout.write('\n*7·7.\n');
606606
/*
607-
*7·7. Create a function called 'bottom3' that takes an array (of at least 3 strings) and returns the last 3 strings that occur in reverse alphabetical order.
607+
*7·7. Create a function called 'bottom3' that takes an array (of at least 3 strings) and returns the last 3 strings that occur in alphabetical order.
608608
609609
The following lines should help you see if your function works correctly.
610610
*/
@@ -618,7 +618,7 @@ console.log(bottom3(['apple', 'banana', 'cherry']), '=== [\'cherry\', \'banana\'
618618

619619
process.stdout.write('\n*7·71.\n');
620620
/*
621-
*7·71. Create a function called 'bottomN' that takes a number (n) and an array (of at least n strings). It should return the last n strings that occur in reverse alphabetical order.
621+
*7·71. Create a function called 'bottomN' that takes a number (n) and an array (of at least n strings). It should return the last n strings that occur in alphabetical order.
622622
623623
The following lines should help you see if your function works correctly.
624624
*/

0 commit comments

Comments
 (0)