Merge pull request #2177 from vsemozhetbyt/patch-3

Make code example more realistic and safe
This commit is contained in:
Ilya Kantor 2020-10-11 17:23:27 +03:00 committed by GitHub
commit 0599d07b3c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -426,6 +426,7 @@ By the way, if we ever want to know which elements are compared -- nothing preve
```js run ```js run
[1, -2, 15, 2, 0, 8].sort(function(a, b) { [1, -2, 15, 2, 0, 8].sort(function(a, b) {
alert( a + " <> " + b ); alert( a + " <> " + b );
return a - b;
}); });
``` ```