Last active
January 2, 2019 18:32
-
-
Save emeaguiar/748b36ca67efb3ebdbd09f5e2814fd50 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 array = [ 'foo', 'bar', 'baz' ]; | |
// Elimina el último elemento del array | |
const removedElement = array.pop(); | |
// [ 'foo', 'bar' ] | |
console.log( array ) | |
// 'baz' | |
console.log( removedElement ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment