Use the following array to do the requirements
["Apple","Banana","Watermelon","Avocado"]
Go over the given array and do the following:
- Write a function that prints all the elements in the array in to the console.
- Write a function that finds the string
"Apple"
- Write a function that takes the first letter out of all the elements in the array and returns a new array with these letters. Example
(["Apple","Banana","Watermelon"] => ["A","B","W"])
Good luck :D