demo of array methods

arrays used

fruits = []

numbers = []

loop over all fruits

filter all fruits that start with 'p'

map creates new fruits array where elements are <fruit>✼

reduce numbers array to its sum

the index of kiwi in fruit array is

does mango includes in fruits array?

sort numbers in descending

join numbers by ✼

push 100 at the end

removes the last element from numbers

removes the first element from numbers

push 100 at the start

reverse numbers array