Merge pull request #2177 from vsemozhetbyt/patch-3
Make code example more realistic and safe
This commit is contained in:
commit
0599d07b3c
1 changed files with 1 additions and 0 deletions
|
@ -426,6 +426,7 @@ By the way, if we ever want to know which elements are compared -- nothing preve
|
|||
```js run
|
||||
[1, -2, 15, 2, 0, 8].sort(function(a, b) {
|
||||
alert( a + " <> " + b );
|
||||
return a - b;
|
||||
});
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue