Push
Push is an array method that allows us to add items to the end of the array. For example, perhaps we wish to add Uecker to the array. We can utilize push as follows…
baseballCards.push( ‘Uecker’ );
console.log( baseballCards );
The output to the console will be ‘Aaron’, ‘Ruth’, ‘Wagner’, ‘Uecker’.
Happy Coding!
Clay Hess