Last active
August 12, 2021 08:57
-
-
Save tofusoup429/480440544629020367f1124131653eb9 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 months = ["Jan", "Mar", "Mar", "April"]; | |
months.splice(1, 1, "Feb"); | |
console.log(months) | |
//output: [Jan,Feb,Mar,April] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment