Created
October 23, 2015 06:57
-
-
Save edinsoncs/d94a64b725162f313e03 to your computer and use it in GitHub Desktop.
Shift and Sort
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
/*shift and sort*/ | |
function active(arr, orde) { | |
var array = arr; | |
array = "Esto es Sort: "+array.sort() +" Esto es Eliminar 0 de array: "+ array.shift(); | |
return array; | |
} | |
active(['edinson', 'apple', 'google', 'javascripter', 'developer'], ['sort']); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment