Answered step by step
Verified Expert Solution
Question
1 Approved Answer
JAVASCRIPT // 1. Write a function that accepts an Array of Strings as an argument. The function will create a new Array with every
JAVASCRIPT // 1. Write a function that accepts an Array of Strings as an argument. The function will create a new Array with every String in the original Array converted to uppercase and returns the new Array. // 2. Write a function that accepts an Array of numbers and sorts them numerically in ascending order. // 3. Write a function that accepts an Array of Date objects and sorts them according to their month value. // 4. Write a function that accepts an Array and will move the first value in the Array to the last position in the Array. The function returns the updated Array. // 5. Write a function that accepts an Array of Strings. The function will use the filter() method and the sort() method to remove any String that is longer than 5 characters and then sorts the Strings alphabetically. The function returns the new filtered and sorted array. // 6. Write a function that accepts an Array of Strings. The function will use the map() method to create a new array that holds the length of each string. Return the new array with the lengths.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started