JavaScript Taskbook Level 2.8

Задание 1

Given a string of letters, check that there are no more than two capital letters in this string.

Задание 2

A certain line is given:

javascript'1 22 333 4444 22 5555 1'

Remove from this string all substrings in which the number of characters is more than three. In our case, we should get the following:

javascript'1 22 333 22 1'
Задание 3

Two arrays are given:

javascriptlet arr1 = [1, 2, 3];
let arr2 = ['a', 'b', 'c'];

Merge these arrays into a new array as follows:

javascript[1, 2, 'a', 'b', 'c', 3]