Created
August 6, 2011 05:31
-
-
Save geddski/1129044 to your computer and use it in GitHub Desktop.
Removing elements from an array
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
var books = ["Ender's Game", "The Hobbit", "The Alliance"]; | |
books.splice(1,1); | |
console.log(books); | |
//["Ender's Game", "The Alliance"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment