Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Mobile Usability

Authors: Jakob Nielsen, Raluca Budiu

1st Edition

0133122131, 9780133122138

More Books

Students also viewed these Programming questions

Question

Graph the given linear equation. y = 1/3x -1

Answered: 1 week ago