-
-
Save parzibyte/59a891baf603f2ce80c47aa2b84eda18 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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