Created
November 8, 2018 20:55
-
-
Save AminBusiness/35116827be3a4c45174ac44e3a79d3c6 to your computer and use it in GitHub Desktop.
// source https://jsbin.com/gavovuh
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
<script id="jsbin-javascript"> | |
//How to add something to the beginning and end of an array | |
var myArray = ['a','b','c','d']; | |
myArray.push("end"); | |
myArray.unshift("start"); | |
console.log(myArray) | |
</script> | |
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
//How to add something to the beginning and end of an array | |
var myArray = ['a','b','c','d']; | |
myArray.push("end"); | |
myArray.unshift("start"); | |
console.log(myArray) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment