I'm starting to learn javascript and while looking for examples of sort I came across the following code:
var numeros = [1,2,3,4,5,6,7,8,9,10];
numeros.sort(function (a, b) {
return (a % 2 !=0);
});
console.log (numeros);
The console ou...
asked by
22.10.2017 / 16:56