Code

General Code

Array Methods & Properties

Shift Shift allows us to remove the first item in the array. It works similar to pop. Consider the following code from our baseball array we have been using… The output will be ‘Ruth’, ‘Wagner’, ‘Uecker’. It basically removes the item and shifts everything over. There might be times you wish to remove an item […]

Array Methods & Properties Read More »