let arr = [4,7];
//part 1 use unshift method to add 7 to the list and print the array.
//part 2- use push method to add 10 and 2 to the list and print the array.
//part 3- use shift method twice to remove first two items from the list and print the array.
//part 4- use pop method to remove the last item from the list and print the array.
-
-
Save McLarenCollege/4a0dcb3b8da1b29536ad269bed240c76 to your computer and use it in GitHub Desktop.
Exercise : Various Array Methods
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment