Write a function songNameOperations
that takes a single parameter songNames
which is an array of strings, where each string is the name of a song.
The function should calculate the length of each song name, creating an array of these lengths and log the result. Next, it should filter the song names to identify those that contain at least one vowel (a, e, i, o, u) and log the filtered list.
Then create another list that excludes song names beginning with a vowel and log this filtered list. Finally, the function should determine the longest song name in the array and log it to the console.