1 00:00:00,120 --> 00:00:05,520 We can remove the last element of an array from being output ID by using the pop method 2 00:00:14,400 --> 00:00:15,210 in this case 3 00:00:18,580 --> 00:00:21,100 the last element is mango. 4 00:00:21,100 --> 00:00:24,710 This will no longer be presented in our output 5 00:00:30,050 --> 00:00:33,030 as you can see in our web browser. 6 00:00:33,080 --> 00:00:34,730 Mango is not output it 7 00:00:40,920 --> 00:00:51,550 in order to remove the first word instead or the first element we can use the shift method. 8 00:00:52,620 --> 00:00:59,280 Now when we save our file and refresh our web browser you'll see that mango reappears but Apple has 9 00:00:59,280 --> 00:01:00,060 been removed 10 00:01:04,330 --> 00:01:06,970 to add a new element to the end of an array. 11 00:01:07,000 --> 00:01:08,500 We can use the push method 12 00:01:17,700 --> 00:01:23,730 in this case we'll add the word cherry to the very end of our output 13 00:01:31,270 --> 00:01:35,080 and you can see that we now have a new element that has been output it 14 00:01:39,600 --> 00:01:42,770 to add a new element to the beginning of an array. 15 00:01:43,290 --> 00:01:45,090 We can use the UN shift method 16 00:01:56,490 --> 00:02:01,230 we can see that the element Cherry has now been added to the beginning of the array.