Fix confusion in the task
This commit is contained in:
parent
2e5fa7810b
commit
33cca1b111
1 changed files with 2 additions and 2 deletions
|
@ -2,12 +2,12 @@ importance: 4
|
|||
|
||||
---
|
||||
|
||||
# Sort in the reverse order
|
||||
# Sort in decreasing order
|
||||
|
||||
```js
|
||||
let arr = [5, 2, 1, -10, 8];
|
||||
|
||||
// ... your code to sort it in the reverse order
|
||||
// ... your code to sort it in decreasing order
|
||||
|
||||
alert( arr ); // 8, 5, 2, 1, -10
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue