Update solution.md
This commit is contained in:
parent
24411a8de8
commit
62ca575e8c
1 changed files with 1 additions and 1 deletions
|
@ -12,6 +12,6 @@ let arr = [ john, pete, mary ];
|
||||||
sortByName(arr);
|
sortByName(arr);
|
||||||
|
|
||||||
// now sorted is: [john, mary, pete]
|
// now sorted is: [john, mary, pete]
|
||||||
alert(arr[1].name) // Mary
|
alert(arr[1].name); // Mary
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue