stack add item in middle code example
Example: can we push or pop a name from middle of the array
var suits = ["hearts", "clubs", "Brooks Brothers", "diamonds", "spades"];
suits.splice(2, 0, "Brooks Brothers");
console.log(suits);
var suits = ["hearts", "clubs", "Brooks Brothers", "diamonds", "spades"];
suits.splice(2, 0, "Brooks Brothers");
console.log(suits);