Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created July 4, 2019 15:43
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save parzibyte/59a891baf603f2ce80c47aa2b84eda18 to your computer and use it in GitHub Desktop.
const arreglo = [20, 50, 10, 1, 80, 20, 80, 60];
console.log("Antes de ordenar: ", arreglo);
arreglo.sort((unNumero, otroNumero) => unNumero - otroNumero);
console.log("Después de ordenar: ", arreglo);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment