3 ms·
This tweet shows the following evaluation in JavaScript: [6, -2, 2, -7].sort(); The result comes back with this unexpected set: [-2, -7, 2, 6]
by Minor49er 6y ago
This tweet shows the following evaluation in JavaScript:
[6, -2, 2, -7].sort();
The result comes back with this unexpected set:
[-2, -7, 2, 6]