Last active
December 10, 2019 13:50
-
-
Save Paul-Browne/b800fc41f0ee0da5fc0450af465cc554 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
var days = ["Monday", "Tuesday", "Wednesday", "Thursday", "Saturday", "Sunday"]; | |
var removed = days.splice(4, 2, "Friday"); | |
console.log(days); | |
// ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday"] | |
console.log(removed); | |
// [Saturday, Sunday] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment