Browse Source

Test(sortBydir):correct subject of sortBydir

CON-2247-MARKDOWN-create-subject-of-sortBydir
zainabdnaya 1 year ago
parent
commit
dc66803b33
  1. 6
      subjects/sortBydir/README.md

6
subjects/sortBydir/README.md

@ -14,7 +14,7 @@ If the values of the array is not an integer, return false.
### Expected Function ### Expected Function
```js ```js
function sortReloaded(arrayIntg,dir) function sortBydir(arrayIntg,dir)
``` ```
@ -24,8 +24,8 @@ Here is a program to test your function.
```js ```js
const inputArray = [4, 2, 8, 1, 5]; const inputArray = [4, 2, 8, 1, 5];
const ascendingResult = orderArray(inputArray); const ascendingResult = sortBydir(inputArray);
const descendingResult = orderArray(inputArray, 'desc'); const descendingResult = sortBydir(inputArray, 'desc');
console.log(ascendingResult); console.log(ascendingResult);
console.log(descendingResult); console.log(descendingResult);
``` ```

Loading…
Cancel
Save