Hello 

This is the day 19 of #30 days of javascrip coding, at this day I studied Add And Remove From Array Lesson i learned that
1- The unshift is used to add items to the array at the beginning, meaning the names will be added at the beginning of the array
2-Push is used to add items to the array at the end. This means that the names will be added at the end of the array.
3- The shift is used to remove the first item from the array, meaning the first name will be removed from the array.
4- You can store the item that was deleted in a variable, call that variable, and print the value in it, which is the deleted item.
5-The pop is used to remove the last item from the array. This means that the last name in the array will be removed. I can store the name that was created in a variable and call it. 
That's what I learned today and this is the codes i have typed

Comments

Popular posts from this blog