JavaScript Taskbook Level 3.7

Задание 1

Given a string of words, sort the words in alphabetical order.

Задание 2

Given a number, get an array of divisors of that number.

Задание 3

Given two numbers, get an array of common divisors of these numbers.

Задание 4

Given a number, check that this number has only one divisor other than itself and one.

Задание 5

The numbers are written separated by commas. Get the maximum of these numbers.

Задание 6

Given an array of numbers, insert another one of the same after each single-digit number.

Задание 7

Given a string, remove all vowels from it.

Задание 8

Given a string, capitalize the last letter of each word in this string.

Задание 9

The following structure is given:

javascriptlet data = [
  {
    1: [1, 2, 3],
    2: [1, 2, 3],
    3: [1, 2, 3],
  },
  {
    1: [1, 2, 3],
    2: [1, 2, 3],
    3: [1, 2, 3],
  },
  {
    1: [1, 2, 3],
    2: [1, 2, 3],
    3: [1, 2, 3],
  },
];

Find the sum of the elements of this structure.